Multiple maps
-
It seems if I embed more than 1 map on a page only the first one works. Is it not possible to have multiple maps?
-
Thanks for your query.
I think the Plugin support’s multiple maps on a single page. You can have a look on the page: http://www.srmilon.com/google-map-demo where multiple maps are working fine.
Could you share the link where you are getting an error in time showing multiple maps?
Thanks
MilonfciThanks for the quick reply. Here’s the link:
http://hip.kineticpulse-dev.co.uk/locations/
No javascript console errors, the map canvas is loading for all tabs, but the map itself is only loading in the first one. All maps render correctly in the backend
OK, I got the problem.
There might be something, I will check the issue and will let you know what should be the solution.
I think, this is related to DOM loading via JS.Thanks
Milonfci-
This reply was modified 9 years, 2 months ago by
Saidur Rahman Milon.
Hi,
I have researched on the issue what you mentioned. You have used Jquery Tabs on your website. Basically, JS does not support event watcher when the tabs are visible, that’s why the script of the plugin is not able to detect once you click on tabs.
The problem may be resolved in your end by coding.
N.B: I have tested all popular Google Map Plugin, those do not also support maps in tab way.Multiple maps will in a single page, not tabbed contents.
Thanks
MilonfciThanks for looking into it. I injected some code to shortcodes.php to fix the issue; basically I needed to resize the google map when the tab is clicked.
jQuery('.tab').click(function(){ google.maps.event.trigger(map,'resize',{}); });Yes, That is actual solution what I was suggesting you.
Thanks
Milonfci -
This reply was modified 9 years, 2 months ago by
The topic ‘Multiple maps’ is closed to new replies.