Fix adding Vector layers during a zoom animation. Fixes #2416
This commit is contained in:
parent
064902665e
commit
4a556886fb
@ -24,7 +24,7 @@ L.Canvas = L.Renderer.extend({
|
||||
},
|
||||
|
||||
_update: function () {
|
||||
if (this._map._animatingZoom) { return; }
|
||||
if (this._map._animatingZoom && this._bounds) { return; }
|
||||
|
||||
L.Renderer.prototype._update.call(this);
|
||||
|
||||
|
@ -15,7 +15,7 @@ L.SVG = L.Renderer.extend({
|
||||
},
|
||||
|
||||
_update: function () {
|
||||
if (this._map._animatingZoom) { return; }
|
||||
if (this._map._animatingZoom && this._bounds) { return; }
|
||||
|
||||
L.Renderer.prototype._update.call(this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user