Responsive...

  • marian
  • Topic Author
  • Offline
  • New Member
  • New Member
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:
Code:
<div id="GMapsID" style="margin:0;padding:0;width:100%;height:100%;">
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!

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #5303 by Dima
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

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
Powered by Kunena Forum