From 445fa065f0f94e81b29df9865a7a68998c6af35f Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Sat, 6 Mar 2021 22:16:05 +0100 Subject: [PATCH] Ignore almost all map options for overview maps --- src/components/MiniMap.vue | 10 +++++++++- src/views/Association.vue | 2 +- src/views/Region.vue | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/MiniMap.vue b/src/components/MiniMap.vue index 6092f93..33dfc85 100644 --- a/src/components/MiniMap.vue +++ b/src/components/MiniMap.vue @@ -38,7 +38,8 @@ export default { isEnlarged: Boolean, zoomWarning: Boolean, showInactiveSummits: Boolean, - canEnlarge: Boolean + canEnlarge: Boolean, + overviewMap: Boolean }, components: { MglMap, MglGeolocateControl, MglNavigationControl, MapEnlargeControl, MglScaleControl, MglAttributionControl, MapRoute, MapPhoto, MapInfoPopup @@ -85,6 +86,13 @@ export default { }, mapOptions () { // Filter user map options; we don't need regions and spots here + if (this.overviewMap) { + return { + contours: this.$store.state.mapOptions.contours, + hillshading: this.$store.state.mapOptions.hillshading + } + } + let mapOptions = { ...this.$store.state.mapOptions } mapOptions.spots = false mapOptions.regions = false diff --git a/src/views/Association.vue b/src/views/Association.vue index a8f82d5..643c516 100644 --- a/src/views/Association.vue +++ b/src/views/Association.vue @@ -33,7 +33,7 @@
- +
diff --git a/src/views/Region.vue b/src/views/Region.vue index 241ee44..7080164 100644 --- a/src/views/Region.vue +++ b/src/views/Region.vue @@ -20,7 +20,7 @@
- +