- Posts: 2
- Thank you received: 0
Responsive...
- marian
- Topic Author
- Offline
- New Member
-
Less
More
10 years 11 months ago #5194
by marian
Responsive... was created by marian
Hello,
I try to understand how can I recive the map responsive.
Yes, I read about the 100% and about 0 in the width (also in the height).
I put there a 0 but when I make a new menu item with a Zh GoogleMap I have there also a width and a height.
If I don't add anything there I recive a page with no map. The code for it HAS rhe 100% width and height:
But the map isn't shown.
If I add here (menu item) numbers (100, 500, 0 etc) they will be understand as px and the map will be shown in that size. But newer resposive.
So please, how can I do a responsive map?
Or, perhaps, there is a bug somewhere?
Thank you very much!
I try to understand how can I recive the map responsive.
Yes, I read about the 100% and about 0 in the width (also in the height).
I put there a 0 but when I make a new menu item with a Zh GoogleMap I have there also a width and a height.
If I don't add anything there I recive a page with no map. The code for it HAS rhe 100% width and height:
Code:
<div id="GMapsID" style="margin:0;padding:0;width:100%;height:100%;">
If I add here (menu item) numbers (100, 500, 0 etc) they will be understand as px and the map will be shown in that size. But newer resposive.
So please, how can I do a responsive map?
Or, perhaps, there is a bug somewhere?
Thank you very much!
Please Log in or Create an account to join the conversation.
- Dima
-
- Offline
- Platinum Member
-
10 years 10 months ago #5303
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Responsive...
hi
Sorry for delay, I was on holidays
You can set width to 0, in this case it will responsible horizontally.
To have flexible height you can only 2 ways
- full screen map (for example, set 0 for width and height, install my template for full screen map and apply to your page with map)
- you can set height = 0 and create by yourself template with height=100% for each nested divs
When you set height=100% you have to set that attribute on each nested divs, because it collapsed if you don't set that, and you'll not see map
Sorry for delay, I was on holidays
You can set width to 0, in this case it will responsible horizontally.
To have flexible height you can only 2 ways
- full screen map (for example, set 0 for width and height, install my template for full screen map and apply to your page with map)
- you can set height = 0 and create by yourself template with height=100% for each nested divs
When you set height=100% you have to set that attribute on each nested divs, because it collapsed if you don't set that, and you'll not see map
Don't forget support my developments: post review in JED , donate , help with translation

Please Log in or Create an account to join the conversation.
Time to create page: 0.346 seconds