Map bug after fixing bug in the tabs
-
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.
- The topic ‘Map bug after fixing bug in the tabs’ is closed to new replies.