From 736d408f00e72f13e21396f9a33681e679227edd Mon Sep 17 00:00:00 2001 From: Eric Brelsford Date: Mon, 13 Nov 2023 10:56:41 -0500 Subject: [PATCH] More flexible layers (#17) --- vacs-map-app/src/App.vue | 58 +++- vacs-map-app/src/components/BaseMap.vue | 10 +- vacs-map-app/src/components/Filters.vue | 4 +- vacs-map-app/src/components/GridOverlay.vue | 280 +++++++++--------- vacs-map-app/src/components/GridSource.vue | 86 ++++++ .../src/components/MapContainerColor.vue | 61 ++++ .../components/MapContainerColorRadius.vue | 82 +++++ .../src/components/MapContainerNotFilled.vue | 63 ++++ .../MapContainerNotFilledTwoLayers.vue | 102 +++++++ 9 files changed, 590 insertions(+), 156 deletions(-) create mode 100644 vacs-map-app/src/components/GridSource.vue create mode 100644 vacs-map-app/src/components/MapContainerColor.vue create mode 100644 vacs-map-app/src/components/MapContainerColorRadius.vue create mode 100644 vacs-map-app/src/components/MapContainerNotFilled.vue create mode 100644 vacs-map-app/src/components/MapContainerNotFilledTwoLayers.vue diff --git a/vacs-map-app/src/App.vue b/vacs-map-app/src/App.vue index a2162b1..d612750 100644 --- a/vacs-map-app/src/App.vue +++ b/vacs-map-app/src/App.vue @@ -1,21 +1,71 @@ diff --git a/vacs-map-app/src/components/BaseMap.vue b/vacs-map-app/src/components/BaseMap.vue index a2f2069..e4101a8 100644 --- a/vacs-map-app/src/components/BaseMap.vue +++ b/vacs-map-app/src/components/BaseMap.vue @@ -1,7 +1,7 @@ @@ -14,7 +14,6 @@ import { MAPBOX_GL_ACCESS_TOKEN, MAPBOX_STYLE, } from '@/constants'; -import GridOverlay from './GridOverlay.vue'; const map = shallowRef(null); const mapReady = ref(false); @@ -45,8 +44,11 @@ onMounted(() => { diff --git a/vacs-map-app/src/components/Filters.vue b/vacs-map-app/src/components/Filters.vue index 5d75ece..fd67de6 100644 --- a/vacs-map-app/src/components/Filters.vue +++ b/vacs-map-app/src/components/Filters.vue @@ -57,10 +57,8 @@ const { diff --git a/vacs-map-app/src/components/GridOverlay.vue b/vacs-map-app/src/components/GridOverlay.vue index 39f9d9e..718f1bd 100644 --- a/vacs-map-app/src/components/GridOverlay.vue +++ b/vacs-map-app/src/components/GridOverlay.vue @@ -2,129 +2,104 @@ diff --git a/vacs-map-app/src/components/GridSource.vue b/vacs-map-app/src/components/GridSource.vue new file mode 100644 index 0000000..1096ab3 --- /dev/null +++ b/vacs-map-app/src/components/GridSource.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/vacs-map-app/src/components/MapContainerColor.vue b/vacs-map-app/src/components/MapContainerColor.vue new file mode 100644 index 0000000..acc7bac --- /dev/null +++ b/vacs-map-app/src/components/MapContainerColor.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/vacs-map-app/src/components/MapContainerColorRadius.vue b/vacs-map-app/src/components/MapContainerColorRadius.vue new file mode 100644 index 0000000..eb3e9a0 --- /dev/null +++ b/vacs-map-app/src/components/MapContainerColorRadius.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/vacs-map-app/src/components/MapContainerNotFilled.vue b/vacs-map-app/src/components/MapContainerNotFilled.vue new file mode 100644 index 0000000..b98fd7c --- /dev/null +++ b/vacs-map-app/src/components/MapContainerNotFilled.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/vacs-map-app/src/components/MapContainerNotFilledTwoLayers.vue b/vacs-map-app/src/components/MapContainerNotFilledTwoLayers.vue new file mode 100644 index 0000000..5bcbd26 --- /dev/null +++ b/vacs-map-app/src/components/MapContainerNotFilledTwoLayers.vue @@ -0,0 +1,102 @@ + + + + +