google.maps.event.trigger(map, ‘resize’);
-
Hello,
I’m trying to trigger a resize/refresh event on your JS because it’s inside a tab (tabby) and the map is not well displayed when clicking on it.
tabby.init({ callback: function(name) { if(name.getAttribute("href") === "#acces") { google.maps.event.trigger(map, 'resize'); } } });
I”ve added this on my main JS. But in the the console, the following error is showing up :
all.js?ver=4.6.1:1 Uncaught ReferenceError: map is not defined
Is there a way to do this ?
Thank you.
- The topic ‘google.maps.event.trigger(map, ‘resize’);’ is closed to new replies.