From 81dc24892a3ffd4b53158bb0b5533ae55c1931c1 Mon Sep 17 00:00:00 2001 From: johnd0e Date: Thu, 10 Jun 2021 15:06:16 +0300 Subject: [PATCH] L.GridLayer/onAdd: avoid excessive _update call (#7570) ..which is already implicitly called earlier by _resetView --- src/layer/tile/GridLayer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layer/tile/GridLayer.js b/src/layer/tile/GridLayer.js index 1d95091c6d8..c6e1e84405f 100755 --- a/src/layer/tile/GridLayer.js +++ b/src/layer/tile/GridLayer.js @@ -159,8 +159,7 @@ export var GridLayer = Layer.extend({ this._levels = {}; this._tiles = {}; - this._resetView(); - this._update(); + this._resetView(); // implicit _update() call }, beforeAdd: function (map) {