Title: google.maps.event.trigger(map, &#8216;resize&#8217;);
Last modified: October 17, 2016

---

# google.maps.event.trigger(map, ‘resize’);

 *  [saphirblanc](https://wordpress.org/support/users/saphirblanc/)
 * (@saphirblanc)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/google-maps-event-triggermap-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.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-map_1b95bb.svg)
 * [Simple Map](https://wordpress.org/plugins/simple-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-map/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-map/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [saphirblanc](https://wordpress.org/support/users/saphirblanc/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/google-maps-event-triggermap-resize/)
 * Status: not resolved