Google Map doesn't show up properly in tabs/accordion
-
Hello Vladimir,
you have a great plugin, unfortunately Google Map doesn’t load properly in your tabs. Only the left top corner of the map (probably 1/8th of the whole map) will load, the rest of the Google Map is just solid gray area.
This is a common problem for Google Maps, and there are solutions on the internet that will work only on particular WordPress themes/plugins.
Here is one solution that works with another tabs plugin:
(it doesn’t work with your plugin)<script>
jQuery(document).ready(function(){
jQuery(‘a[data-toggle=”tab”]’).on(‘shown.bs.tab’, function (e) {
google.maps.event.trigger(map, “resize”);
});
});
</script>Do you have a solution that will fix Google Map problem for your plugin?
Thank you.
- The topic ‘Google Map doesn't show up properly in tabs/accordion’ is closed to new replies.