Fire 'viewreset' on map.stop(), fixes #3985
This commit is contained in:
parent
714cbb9ec6
commit
86a7f79dc9
@ -378,6 +378,9 @@ L.Map = L.Evented.extend({
|
||||
// Stops the currently running `panTo` or `flyTo` animation, if any.
|
||||
stop: function () {
|
||||
this.setZoom(this._limitZoom(this._zoom));
|
||||
if (!this.options.zoomSnap) {
|
||||
this.fire('viewreset');
|
||||
}
|
||||
return this._stop();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user