From 639ff88e4680fb5545ccd9a733acf8c0b40f3091 Mon Sep 17 00:00:00 2001 From: jeffwalkernoaa Date: Thu, 1 Aug 2024 10:40:42 -0400 Subject: [PATCH] retain spatial filter - user-defined spatial filter is now retained after switching species --- src/components/MapSelector.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/MapSelector.vue b/src/components/MapSelector.vue index d7a6100..bc2532e 100644 --- a/src/components/MapSelector.vue +++ b/src/components/MapSelector.vue @@ -14,7 +14,7 @@ export default { } }, computed: { - ...mapGetters(['theme', 'deployments']), + ...mapGetters(['deployments']), map () { return this.$parent.map }, @@ -30,11 +30,6 @@ export default { return [...stations, ...points] } }, - watch: { - theme () { - this.reset() - } - }, mounted () { this.dim = xf.dimension(d => d.id) @@ -48,10 +43,8 @@ export default { circle: false, marker: false, circlemarker: false - // rectangle: {} }, edit: { - // edit: false, featureGroup: this.layer } })