From e87e76180f8c2b4e37820d23b46345a2170054c9 Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Wed, 31 Mar 2021 14:05:49 +0200 Subject: [PATCH] Add webcams to map --- src/components/MapOptionsControl.vue | 30 ++++++- src/components/MapPhoto.vue | 5 +- src/components/MapWebcam.vue | 121 +++++++++++++++++++++++++++ src/components/MapWebcams.vue | 59 +++++++++++++ src/components/MiniMap.vue | 4 +- src/components/SummitPopup.vue | 9 +- src/main.js | 4 +- src/views/Map.vue | 12 ++- 8 files changed, 232 insertions(+), 12 deletions(-) create mode 100644 src/components/MapWebcam.vue create mode 100644 src/components/MapWebcams.vue diff --git a/src/components/MapOptionsControl.vue b/src/components/MapOptionsControl.vue index d3349a0..245e052 100644 --- a/src/components/MapOptionsControl.vue +++ b/src/components/MapOptionsControl.vue @@ -1,6 +1,8 @@ @@ -59,16 +66,22 @@ + + diff --git a/src/components/MapWebcams.vue b/src/components/MapWebcams.vue new file mode 100644 index 0000000..1c12bff --- /dev/null +++ b/src/components/MapWebcams.vue @@ -0,0 +1,59 @@ + + + diff --git a/src/components/MiniMap.vue b/src/components/MiniMap.vue index daf9ca0..1d96aa2 100644 --- a/src/components/MiniMap.vue +++ b/src/components/MiniMap.vue @@ -11,6 +11,7 @@ +
Zoom in to see all activations
@@ -21,6 +22,7 @@ import MapRoute from './MapRoute.vue' import MapPhoto from './MapPhoto.vue' import MapInfoPopup from './MapInfoPopup.vue' import MapEnlargeControl from './MapEnlargeControl.vue' +import MapWebcams from './MapWebcams.vue' import mapstyle from '../mixins/mapstyle.js' import utils from '../mixins/utils.js' import longtouch from '../mixins/longtouch.js' @@ -42,7 +44,7 @@ export default { overviewMap: Boolean }, components: { - MglMap, MglGeolocateControl, MglNavigationControl, MapEnlargeControl, MglScaleControl, MglAttributionControl, MapRoute, MapPhoto, MapInfoPopup + MglMap, MglGeolocateControl, MglNavigationControl, MapEnlargeControl, MglScaleControl, MglAttributionControl, MapRoute, MapPhoto, MapInfoPopup, MapWebcams }, mixins: [utils, mapstyle, longtouch], watch: { diff --git a/src/components/SummitPopup.vue b/src/components/SummitPopup.vue index a3cf9fd..6809639 100644 --- a/src/components/SummitPopup.vue +++ b/src/components/SummitPopup.vue @@ -1,5 +1,5 @@