fix: do not redraw tilelayers each time a map property is changed

This commit is contained in:
Yohan Boniface 2024-12-05 18:32:05 +01:00
parent 7f3726ddd1
commit 20b2290d00

View file

@ -279,12 +279,12 @@ export const LeafletMap = BaseMap.extend({
this.initControls() this.initControls()
// Needs locate control and hash to exist // Needs locate control and hash to exist
this.initCenter() this.initCenter()
this.initTileLayers()
this.renderUI() this.renderUI()
}, },
renderUI: function () { renderUI: function () {
setOptions(this, this._umap.properties) setOptions(this, this._umap.properties)
this.initTileLayers()
// Needs tilelayer to exist for minimap // Needs tilelayer to exist for minimap
this.renderControls() this.renderControls()
this.handleLimitBounds() this.handleLimitBounds()