Fix adding Vector layers during a zoom animation. Fixes #2416

This commit is contained in:
danzel 2014-01-30 11:14:57 +13:00
parent 064902665e
commit 4a556886fb
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);