Support » Plugin: WP Google Map » Multiple maps

  • Resolved KineticPulse

    (@kineticpulse)


    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Saidur Rahman Milon

    (@milonfci)

    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
    Milonfci

    KineticPulse

    (@kineticpulse)

    Thanks 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

    Plugin Author Saidur Rahman Milon

    (@milonfci)

    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

    Plugin Author Saidur Rahman Milon

    (@milonfci)

    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
    Milonfci

    Thanks 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',{});
                    });
    Plugin Author Saidur Rahman Milon

    (@milonfci)

    Yes, That is actual solution what I was suggesting you.

    Thanks
    Milonfci

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple maps’ is closed to new replies.