Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions leaflet-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@
zoomAnimationThreshold: this.zoomAnimationThreshold
});
this.map = map;

// fire an event for when this.map is defined and ready.
// (needed for components that talk to this.map directly)
this.fire('map-ready');

// forward events
map.on('click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu focus blur preclick load unload viewreset movestart move moveend dragstart drag dragend zoomstart zoomend zoomlevelschange resize autopanstart layeradd layerremove baselayerchange overlayadd overlayremove locationfound locationerror popupopen popupclose', function(e) {
Expand Down