mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: do not redraw tilelayers each time a map property is changed
This commit is contained in:
parent
7f3726ddd1
commit
20b2290d00
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue