diff --git a/umap/static/umap/js/modules/rendering/map.js b/umap/static/umap/js/modules/rendering/map.js index 2e3f445e..6ab17a7e 100644 --- a/umap/static/umap/js/modules/rendering/map.js +++ b/umap/static/umap/js/modules/rendering/map.js @@ -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()