Do not call GridLayer.resetView on moveEnd (fix #4702) (#4704)

This commit is contained in:
Yohan Boniface 2016-07-03 11:09:27 +02:00 committed by Vladimir Agafonkin
parent 1e1926b480
commit 04c3b515ec

View File

@ -529,9 +529,7 @@ L.GridLayer = L.Layer.extend({
this._noPrune = !!noPrune;
}
if (tileZoomChanged) {
this._setZoomTransforms(center, zoom);
}
this._setZoomTransforms(center, zoom);
},
_setZoomTransforms: function (center, zoom) {
@ -576,7 +574,7 @@ L.GridLayer = L.Layer.extend({
_onMoveEnd: function () {
if (!this._map || this._map._animatingZoom) { return; }
this._resetView();
this._update();
},
_getTiledPixelBounds: function (center) {