diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/map/core/Map.js | 2 | ||||
-rw-r--r-- | modern/src/map/switcher/switcher.js | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/map/core/Map.js b/modern/src/map/core/Map.js index d6f48d5d..1e7fa76b 100644 --- a/modern/src/map/core/Map.js +++ b/modern/src/map/core/Map.js @@ -21,8 +21,6 @@ element.style.boxSizing = 'initial'; export const map = new maplibregl.Map({ container: element, - center: [0, 0], - zoom: 9, }); let ready = false; diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js index 22ff9488..742ff8c3 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -43,6 +43,7 @@ export class SwitcherControl { if (this.currentStyle !== selectedStyle) { this.onSelectStyle(selectedStyleElement); + this.currentStyle = selectedStyle; } } |