store.state.cesium.active)
+const showMapLibre = computed(() => store.state.debug.showMapLibre)
const showImportFile = computed(() => store.state.ui.importFile)
const showDrawingOverlay = computed(() => store.state.drawing.drawingOverlay.show)
const mapModuleReady = computed(() => store.state.app.isMapReady)
@@ -105,7 +106,7 @@ function addRefBySectionId(el) {
@close-menu-section="onCloseMenuSection"
/>
diff --git a/packages/mapviewer/src/setup-fontawesome.js b/packages/mapviewer/src/setup-fontawesome.js
index b53f85cccd..3bdc1d7abf 100644
--- a/packages/mapviewer/src/setup-fontawesome.js
+++ b/packages/mapviewer/src/setup-fontawesome.js
@@ -61,6 +61,7 @@ import {
faLocationCrosshairs,
faLocationPinLock,
faMagnifyingGlass,
+ faMap,
faMapMarkerAlt,
faMinus,
faMinusCircle,
@@ -137,6 +138,7 @@ library.add(
faLocationCrosshairs,
faLocationPinLock,
faMagnifyingGlass,
+ faMap,
faMapMarkerAlt,
faMinus,
faMinusCircle,
diff --git a/packages/mapviewer/src/store/debug.store.js b/packages/mapviewer/src/store/debug.store.js
index 3009f6144d..46c584577a 100644
--- a/packages/mapviewer/src/store/debug.store.js
+++ b/packages/mapviewer/src/store/debug.store.js
@@ -10,6 +10,7 @@ const mutations = {
(state.showTileDebugInfo = showTileDebugInfo),
setShowLayerExtents: (state, { showLayerExtents }) =>
(state.showLayerExtents = showLayerExtents),
+ setShowMapLibre: (state, { showMapLibre }) => (state.showMapLibre = showMapLibre),
}
mutations[SET_HAS_URL_OVERRIDES_MUTATION_KEY] = (state, { hasOverrides }) =>
(state.hasBaseUrlOverride = hasOverrides)
@@ -20,6 +21,7 @@ export default {
showTileDebugInfo: false,
showLayerExtents: false,
hasBaseUrlOverride: false,
+ showMapLibre: true,
},
getters: {},
actions: {
@@ -38,6 +40,9 @@ export default {
dispatcher,
})
},
+ toggleShowMapLibre({ commit, state }, { dispatcher }) {
+ commit('setShowMapLibre', { showMapLibre: !state.showMapLibre, dispatcher })
+ },
},
mutations,
}
diff --git a/packages/mapviewer/src/store/plugins/app-readiness.plugin.js b/packages/mapviewer/src/store/plugins/app-readiness.plugin.js
index 2c0f6d4751..4016a2728e 100644
--- a/packages/mapviewer/src/store/plugins/app-readiness.plugin.js
+++ b/packages/mapviewer/src/store/plugins/app-readiness.plugin.js
@@ -32,6 +32,7 @@ const appReadinessPlugin = (store) => {
state.ui.width > 0 &&
state.ui.height > 0 &&
Object.keys(state.layers.config).length > 0 &&
+ state.layers.vectorTileStyle !== null &&
state.topics.config.length > 0
) {
store.dispatch('setAppIsReady', dispatcher)
diff --git a/packages/mapviewer/src/views/MapView.vue b/packages/mapviewer/src/views/MapView.vue
index 9d273fe363..7ad6f77743 100644
--- a/packages/mapviewer/src/views/MapView.vue
+++ b/packages/mapviewer/src/views/MapView.vue
@@ -24,6 +24,7 @@ const DrawingModule = defineAsyncComponent(() => import('@/modules/drawing/Drawi
const store = useStore()
const is3DActive = computed(() => store.state.cesium.active)
+const showMapLibre = computed(() => store.state.debug.showMapLibre)
const isDrawingMode = computed(() => store.state.drawing.drawingOverlay.show)
const isPhoneMode = computed(() => store.state.ui.mode === UIModes.PHONE)
const showLoadingBar = computed(() => store.getters.showLoadingBar)
@@ -42,7 +43,7 @@ const loadDrawingModule = computed(() => {
geoloc-button
:full-screen-button="!isDrawingMode"
:toggle3d-button="!isDrawingMode"
- compass-button
+ :compass-button="!showMapLibre"
>
@@ -57,7 +58,7 @@ const loadDrawingModule = computed(() => {
@@ -78,7 +79,7 @@ const loadDrawingModule = computed(() => {
v-if="!isPhoneMode"
#bottom-left
>
-
+