From 87e38f1aa4e03ca42912be8adf22610ccb02f258 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 1 Jul 2016 13:09:38 +0200 Subject: [PATCH] Do not resetView on GridLayer.moveEnd (fix #4617) (#4669) * Do not resetView on GridLayer.moveEnd (fix #4617) * Only call GridLayer._setZoomTransform when zoomchanged --- src/layer/tile/GridLayer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layer/tile/GridLayer.js b/src/layer/tile/GridLayer.js index 885a71b3..2718a9b7 100644 --- a/src/layer/tile/GridLayer.js +++ b/src/layer/tile/GridLayer.js @@ -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) {