kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
rodzic
f6681282ab
commit
445fa065f0
|
@ -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
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
</b-table>
|
||||
</div>
|
||||
<div class="column">
|
||||
<MiniMap v-if="association.code" class="map" :bounds="association.bounds" :filter="mapFilter" />
|
||||
<MiniMap v-if="association.code" class="map" :bounds="association.bounds" :filter="mapFilter" :overviewMap="true" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<SummitList :data="filteredSummits" :myActivatedSummits="myActivatedSummits" :myActivatedSummitsThisYear="myActivatedSummitsThisYear" :myChasedSummits="myChasedSummits" />
|
||||
</div>
|
||||
<div class="column">
|
||||
<MiniMap v-if="region" class="map" :bounds="region.bounds" :filter="mapFilter" :show-inactive-summits="showInactive" />
|
||||
<MiniMap v-if="region" class="map" :bounds="region.bounds" :filter="mapFilter" :show-inactive-summits="showInactive" :overviewMap="true" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Ładowanie…
Reference in New Issue