Support » Plugin: Google Maps - Google Maps Builder for WordPress » Map bug after fixing bug in the tabs

  • Resolved alekspvn

    (@alekspvn)


    Hello. My map does not work in tabs, it’s all the rules on the first tab and how to switch to the second one, the card is gray in color, read the previous topic where somehow this bug fixes the code insertion.
    function hugeitMapsFrontRefresh() {
    google.maps.event.trigger(front_end_map, ‘resize’);
    front_end_map.setCenter(center_coords);
    }

    jQuery(document).on(‘click’,function () {
    setTimeout(function () {
    hugeitMapsFrontRefresh();
    }, 500);
    });
    Yes, it really fixed, but the next problem occurred, when I move around the map, I again get the map back to its original position. I believe that this is all because of this line.
    jQuery(document).on(‘click’,function () {
    setTimeout(function () {
    hugeitMapsFrontRefresh();
    }, 500);
    });
    But if it is removed, then again it stops working in the tabs.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.