Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same issue..

    How can we solve this problem?

    Thanks

    Thread Starter jolly16

    (@jolly16)

    Hi Chantal3864,

    to fix this issue you have to check if in map.js (wp-content/plugins/wp-google-map-plugin/assets/js) you have this function (line 219, between map_loaded and responsive_map functions):

    resize_map: function() {
                var map_obj = this;
                var gmap = map_obj.map;
                var zoom = gmap.getZoom();
                var center = gmap.getCenter();
                google.maps.event.trigger(this.map, 'resize');
                gmap.setZoom(zoom);
                gmap.setCenter(center);
            },

    If no, add it.

    After that you can add on your .click function this:

    $(map1).data('wpgmp_maps').resize_map();

    where “map1” is the ID of your map.

    That’s all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Grey map on tabs’ is closed to new replies.