Title: Refresh map
Last modified: October 27, 2016

---

# Refresh map

 *  Resolved [calello](https://wordpress.org/support/users/calello/)
 * (@calello)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/refresh-map/)
 * Hi to everybody,
    is it possible to refresh the map after an event?
 * I think I can use
    `google.maps.event.trigger(map, 'resize');` but I don’t know
   how to “connect” the map variable to the map in my page.
 * Thank you so much for any help,
 * MC

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/refresh-map/#post-8363542)
 * Hi,
    Maps Marker Pro offers a Javascript Events API for LeafletJS, which can 
   be utilized by developers to attach events handlers to markers and layers. The
   JS Events API has three main methods which can be used to access the maps by 
   javascript code. Basically, you are free to apply any capability on the Map object
   existed in the Leaflet library reference. For full documentation and usage examples
   please visit [https://www.mapsmarker.com/jseventsapi](https://www.mapsmarker.com/jseventsapi)
   best, Robert
 *  Thread Starter [calello](https://wordpress.org/support/users/calello/)
 * (@calello)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/refresh-map/#post-8366630)
 * Great Robert!
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Refresh map’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

## Tags

 * [gmaps](https://wordpress.org/support/topic-tag/gmaps/)

 * 2 replies
 * 2 participants
 * Last reply from: [calello](https://wordpress.org/support/users/calello/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/refresh-map/#post-8366630)
 * Status: resolved