Skip to content

Commit

Permalink
fix: do not redraw tilelayers each time a map property is changed (#2342
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yohanboniface authored Dec 5, 2024
2 parents f481479 + 20b2290 commit 92431d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/static/umap/js/modules/rendering/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 92431d3

Please sign in to comment.