Map not showing properly

  • iluvsuna
  • iluvsuna's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 months ago #3439 by iluvsuna
iluvsuna created the topic: Map not showing properly
Hi there, I've using zhgooglemap on my joomla 2.5 which is fine. Recently the site has been reinstalled into 3.15 and now the map is displayed like the image shown. When refreshed it is ok again. This has not occurred with 2.5. Could you check if what went wrong?

I would like to send the site file to you privately. Is this possible?
Attachments:

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

More
4 years 4 months ago #3440 by Dima
Dima replied the topic: Map not showing properly
Hi.

I think you use map on tabs. In this case your map is published in hidden div, with its dimensions as you get a wrong map size.

When you click on tab to show map - the div is shown, but map doesn't redraw after divs shown (it size changed)

Don't forget support my developments: post review in JED, donate ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites

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

More
4 years 4 months ago #3441 by Dima
Dima replied the topic: Map not showing properly
You can try to add code into switch code for tabs

google.maps.event.trigger(map, 'resize');

where map - it is map variable for your map. I don't know how you display map (I think by plugin), and if it true - it will not easy (I think)

Don't forget support my developments: post review in JED, donate ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites

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

Time to create page: 0.045 seconds

Donate


Go to top