diff --git a/webapp/src/components/DFMapPopup.vue b/webapp/src/components/DFMapPopup.vue index ae26bb5..4d86058 100644 --- a/webapp/src/components/DFMapPopup.vue +++ b/webapp/src/components/DFMapPopup.vue @@ -20,9 +20,6 @@ Unknown Brand - @@ -33,9 +30,6 @@ Unknown Operator - @@ -44,7 +38,6 @@
node/{{ alpr.id }}
- @@ -52,7 +45,7 @@ import { defineProps, computed } from 'vue'; import type { PropType } from 'vue'; import type { ALPR } from '@/types'; -import { VIcon, VList, VSheet, VListItem } from 'vuetify/components'; +import { VIcon, VList, VSheet, VListItem, VChip } from 'vuetify/components'; const props = defineProps({ alpr: { @@ -61,20 +54,7 @@ const props = defineProps({ } }); -const valueTransformations: { [key: string]: (value: string) => string } = { - direction: (value: string) => `${degreesToCardinal(parseInt(value))} ${value}ยบ` -}; - -const whitelistedTags = ['brand', 'camera:mount', 'camera:type', 'direction', 'operator']; - const isFaceRecognition = computed(() => props.alpr.tags.brand === 'Avigilon'); -const osmNodeUrl = computed(() => `/node/${props.alpr.id}`); - -const kvTags = computed(() => { - return Object.entries(props.alpr.tags) - .filter(([key]) => whitelistedTags.includes(key)) - .map(([key, value]) => ({ key, value: valueTransformations[key]?.(value) ?? value })); -}); const cardinalDirection = computed(() => props.alpr.tags.direction === undefined ? 'Unknown' : degreesToCardinal(parseInt(props.alpr.tags.direction)) diff --git a/webapp/src/components/LeafletMap.vue b/webapp/src/components/LeafletMap.vue index 7725822..2d9858e 100644 --- a/webapp/src/components/LeafletMap.vue +++ b/webapp/src/components/LeafletMap.vue @@ -11,7 +11,7 @@