I have a problem with tabs that I cannot solve. I have two tabs, each with an interactive map in it. The first tab loads the map OK however the second tab refuse to load the second map. Any help as to what would cause this would be much appreciated.

I have a problem with tabs that I cannot solve. I have two tabs, each with an interactive map in it. The first tab loads the map OK however the second tab refuse to load the second map. Any help as to what would cause this would be much appreciated.

Hey @waynepatt58,
It looks like your map is powered by Javascript. Please apply the solution given in this similar thread: https://theme.co/apex/forum/t/add-a-grid-in-an-accordion/53843/2?u=christian_y
Hope that helps.
I will tried the code below but it did not solve the problem.
jQuery(function($) {
$(".x-acc-header").click(function() {
setTimeout(function() {
$(window).trigger(‘resize’);
}, 1000);
});
});
Hi @waynepatt58,
Please try with this custom JS instead:
jQuery(function($) {
$(".x-tabs-list button").click(function() {
usahtml5map_map_1.draw();
usahtml5map_map_0.draw();
});
});
Hope that helps and thank you for understanding.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.