fix: do not redraw tilelayers each time a map property is changed (#2342)

This commit is contained in:
Yohan Boniface 2024-12-05 18:32:47 +01:00 committed by GitHub
commit 92431d3b83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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