Loading Map
@@ -70,6 +61,8 @@ import type { Ref } from 'vue';
import { BoundingBox } from '@/services/apiService';
import { getALPRs, geocodeQuery } from '@/services/apiService';
import { useDisplay } from 'vuetify';
+import DFMapMarker from '@/components/DFMapMarker.vue';
+import type { ALPR } from '@/types';
const zoom: Ref
= ref(13);
const center: Ref = ref(null);
@@ -81,7 +74,7 @@ const { xs } = useDisplay();
const canRefreshMarkers = computed(() => zoom.value >= 10);
-const alprsInView: Ref = ref([]);
+const alprsInView: Ref = ref([]);
const bboxForLastRequest: Ref = ref(null);
function onSearch() {
@@ -180,11 +173,6 @@ function updateMarkers() {
});
}
-function degreesToCardinal(degrees: number): string {
- const cardinals = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];
- return cardinals[Math.round(degrees / 45) % 8];
-}
-
onMounted(() => {
const hash = router.currentRoute.value.hash;
if (hash) {