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()
// 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()