From 20b2290d0033df9de20dcea51a53c24dc6f8db76 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 5 Dec 2024 18:32:05 +0100 Subject: [PATCH] fix: do not redraw tilelayers each time a map property is changed --- umap/static/umap/js/modules/rendering/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/rendering/map.js b/umap/static/umap/js/modules/rendering/map.js index 2e3f445ef..6ab17a7ef 100644 --- a/umap/static/umap/js/modules/rendering/map.js +++ b/umap/static/umap/js/modules/rendering/map.js @@ -279,12 +279,12 @@ export const LeafletMap = BaseMap.extend({ this.initControls() // Needs locate control and hash to exist this.initCenter() + this.initTileLayers() this.renderUI() }, renderUI: function () { setOptions(this, this._umap.properties) - this.initTileLayers() // Needs tilelayer to exist for minimap this.renderControls() this.handleLimitBounds()