From c4a95969fcbb4153fb8ccd986c5f8c1c800466ac 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 98aa9f98bad..7c3bcc2219a 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) {