From d8e575cdaa597799c366268419bc57db837c2ee9 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Mon, 27 May 2024 20:22:52 -0300 Subject: [PATCH] Add map popup for DwC data --- src/assets/css/leaflet.css | 8 +-- src/components/Map/VMap.client.vue | 16 ++--- .../Map/constants/disableLayerOptions.js | 7 +++ src/components/Map/constants/index.js | 1 + src/components/Map/utils/geojsonOptions.js | 61 +++++-------------- src/constants/objectTypes.js | 5 ++ .../components/Panel/PanelMap/PanelMap.vue | 16 ++++- .../Panel/PanelMap/components/DwcTable.vue | 58 ++++++++++++++++++ .../Panel/PanelMap/components/MapPopup.vue | 32 ++++++++++ .../PanelMap/components/Search/OtuSearch.vue | 29 ++++++--- .../PanelMap/composables/useGeojsonOptions.js | 34 +++++++++++ 11 files changed, 201 insertions(+), 66 deletions(-) create mode 100644 src/components/Map/constants/disableLayerOptions.js create mode 100644 src/components/Map/constants/index.js create mode 100644 src/constants/objectTypes.js create mode 100644 src/modules/otus/components/Panel/PanelMap/components/DwcTable.vue create mode 100644 src/modules/otus/components/Panel/PanelMap/components/MapPopup.vue create mode 100644 src/modules/otus/components/Panel/PanelMap/composables/useGeojsonOptions.js diff --git a/src/assets/css/leaflet.css b/src/assets/css/leaflet.css index 8ee01bd..f1594e5 100644 --- a/src/assets/css/leaflet.css +++ b/src/assets/css/leaflet.css @@ -3,11 +3,9 @@ saturate(0.3) brightness(0.7); } -/* @media (prefers-color-scheme: dark) { - .map-tiles { - filter:var(--map-tiles-filter, none); - } -} */ +.leaflet-fade-anim .leaflet-popup { + transition: none; +} .map-point-marker { opacity: var(--color-map-marker-opacity); diff --git a/src/components/Map/VMap.client.vue b/src/components/Map/VMap.client.vue index af4f396..da0b5eb 100644 --- a/src/components/Map/VMap.client.vue +++ b/src/components/Map/VMap.client.vue @@ -7,12 +7,12 @@ diff --git a/src/modules/otus/components/Panel/PanelMap/components/MapPopup.vue b/src/modules/otus/components/Panel/PanelMap/components/MapPopup.vue new file mode 100644 index 0000000..398ebf2 --- /dev/null +++ b/src/modules/otus/components/Panel/PanelMap/components/MapPopup.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/modules/otus/components/Panel/PanelMap/components/Search/OtuSearch.vue b/src/modules/otus/components/Panel/PanelMap/components/Search/OtuSearch.vue index 1df085e..ef2c317 100644 --- a/src/modules/otus/components/Panel/PanelMap/components/Search/OtuSearch.vue +++ b/src/modules/otus/components/Panel/PanelMap/components/Search/OtuSearch.vue @@ -1,8 +1,5 @@