diff --git a/common/webapp/src/components/ControlBar/ControlBar.vue b/common/webapp/src/components/ControlBar/ControlBar.vue index 9170862a..5412ec18 100644 --- a/common/webapp/src/components/ControlBar/ControlBar.vue +++ b/common/webapp/src/components/ControlBar/ControlBar.vue @@ -45,8 +45,8 @@
- -
+ +
@@ -102,6 +102,10 @@ showMapMenu() { return this.mapViewer.mapState === "loading" || this.mapViewer.mapState === "loaded"; }, + showViewControls() { + if (!this.mapViewer.map) return false; + return this.mapViewer.map.views.length > 1; + }, showMarkerMenu() { return this.hasMarkers(this.markers) } diff --git a/common/webapp/src/components/ControlBar/ControlsSwitch.vue b/common/webapp/src/components/ControlBar/ControlsSwitch.vue index 756beb9c..3ffb6751 100644 --- a/common/webapp/src/components/ControlBar/ControlsSwitch.vue +++ b/common/webapp/src/components/ControlBar/ControlsSwitch.vue @@ -1,5 +1,5 @@
+
1; } }, methods: { diff --git a/common/webapp/src/components/Menu/SettingsMenu.vue b/common/webapp/src/components/Menu/SettingsMenu.vue index 61a71a0b..fc8f8c3a 100644 --- a/common/webapp/src/components/Menu/SettingsMenu.vue +++ b/common/webapp/src/components/Menu/SettingsMenu.vue @@ -1,6 +1,6 @@
- + {{$t('controls.perspective.button')}} {{$t('controls.flatView.button')}} {{$t('controls.freeFlight.button')}} @@ -106,6 +106,12 @@ name: "SettingsMenu", themes: themes, } }, + computed: { + showViewControls() { + if (!this.mapViewer.map) return false; + return this.mapViewer.map.views.length > 1; + } + }, methods: { switchChunkBorders() { this.$bluemap.setChunkBorders(!this.mapViewer.uniforms.chunkBorders.value);