WP Google Maps
[resolved] Map does not display correctly within drill-down menu (3 posts)

  1. ndoro6
    Posted 3 years ago #


    So I have a map that I'm trying to display only when a specific drill down menu is opened. As it is, the map appears with the correct dimensions, but it is off center within its box, only displays the actual road map in a very small corner, and the majority of the map box remains gray instead of displaying the google map. I have tested that the map is correctly oriented and it does display correctly when not enclosed in the menu. Any ideas?

    Here is a link, it is currently under the drop-down menus "Tourist Things" -> "Greater Dakar": http://www.thevolunteerguide.com/regions/west-africa/senegal/dakar/

    Thanks and appreciate the support!



  2. ndoro6
    Posted 3 years ago #

    Problem remains but I have rearranged the page so its not an issue for the time being. Still, potentially something to look into if you have a chance!

    Thanks again,


  3. WPGMaps
    Plugin Author

    Posted 3 years ago #

    Hi Kellen
    Sorry for the delay.

    What might work is if we reinitialise the current map via jQuery when the link is clicked. I'm not sure if this will work but it's worth a try?

    On the jquery click function, add these lines:

    var myLatLng = new google.maps.LatLng(14.710890,-17.460654);
    MYMAP_1.init("#wpgmza_map_1", myLatLng, 12);

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.