Do not resetView on GridLayer.moveEnd (fix #4617) (#4669)

* Do not resetView on GridLayer.moveEnd (fix #4617)

* Only call GridLayer._setZoomTransform when zoomchanged
This commit is contained in:
Yohan Boniface 2016-07-01 13:09:38 +02:00 committed by Iván Sánchez Ortega
parent 8cb745ce0a
commit 87e38f1aa4

View File

@ -529,7 +529,9 @@ L.GridLayer = L.Layer.extend({
this._noPrune = !!noPrune;
}
this._setZoomTransforms(center, zoom);
if (tileZoomChanged) {
this._setZoomTransforms(center, zoom);
}
},
_setZoomTransforms: function (center, zoom) {