Added leafdoc comments for the 'zoomanim' event, fixes #2862

This commit is contained in:
Iván Sánchez Ortega 2016-04-03 03:16:11 +02:00 committed by Vladimir Agafonkin
parent 4adba1256e
commit 3305aa2b05
2 changed files with 7 additions and 1 deletions

View File

@ -113,4 +113,8 @@ The popup that was opened or closed.
@property distance: Number @property distance: Number
The distance in pixels the draggable element was moved by. The distance in pixels the draggable element was moved by.
@miniclass ZoomAnimEvent (Event ojects)
@inherits Event
@property center: LatLng; The current center of the map
@property zoom: Number; The current zoom level of the map
@property noUpdate: Boolean; Whether layers should update their contents due to this event

View File

@ -107,6 +107,8 @@ L.Map.include(!zoomAnimated ? {} : {
L.DomUtil.addClass(this._mapPane, 'leaflet-zoom-anim'); L.DomUtil.addClass(this._mapPane, 'leaflet-zoom-anim');
} }
// @event zoomanim: ZoomAnimEvent
// Fired on every frame of a zoom animation
this.fire('zoomanim', { this.fire('zoomanim', {
center: center, center: center,
zoom: zoom, zoom: zoom,