diff options
Diffstat (limited to 'modern/src/map/Map.js')
-rw-r--r-- | modern/src/map/Map.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js index 16470ad6..bcd9b9f0 100644 --- a/modern/src/map/Map.js +++ b/modern/src/map/Map.js @@ -60,7 +60,7 @@ const initMap = async () => { map.on('load', initMap); -const switchingControl = new SwitcherControl( +const switcher = new SwitcherControl( [ { title: t('mapOsm'), uri: styleOsm() }, { title: t('mapCarto'), uri: styleCarto() }, @@ -88,12 +88,12 @@ const navigationControl = new maplibregl.NavigationControl({ const addPrimaryControls = position => { map.addControl(navigationControl, position); - map.addControl(switchingControl, position); + map.addControl(switcher, position); } const removePrimaryControls =()=> { map.removeControl(navigationControl); - map.removeControl(switchingControl); + map.removeControl(switcher); } |