Geo Overlays
Select an overlay from the list below to show on map.
-diff --git a/src/resources/assets/js/geo/components/imageMap.vue b/src/resources/assets/js/geo/components/imageMap.vue
index cf7cd6f..e5f6e16 100644
--- a/src/resources/assets/js/geo/components/imageMap.vue
+++ b/src/resources/assets/js/geo/components/imageMap.vue
@@ -51,6 +51,12 @@ export default {
type: Boolean,
default: false
},
+ overlays: {
+ type: Array,
+ default() {
+ return [];
+ },
+ },
},
data() {
return {
@@ -107,9 +113,13 @@ export default {
updateWhileInteracting: true,
});
+ let layers = [tileLayer];
+ Array.prototype.push.apply(layers, this.overlays);
+ layers.push(vectorLayer);
+
let map = new Map({
target: this.$el,
- layers: [tileLayer, vectorLayer],
+ layers: layers,
view: new View(),
interactions: defaultInteractions({
altShiftDragRotate: false,
diff --git a/src/resources/assets/js/volumes/components/filterByLocationComponent.vue b/src/resources/assets/js/volumes/components/filterByLocationComponent.vue
index ee6d4ba..87285db 100644
--- a/src/resources/assets/js/volumes/components/filterByLocationComponent.vue
+++ b/src/resources/assets/js/volumes/components/filterByLocationComponent.vue
@@ -1,15 +1,12 @@
Select an overlay from the list below to show on map.
-