From 5e88647c540eda5e769b8f134dd9c9d17f7ef0d3 Mon Sep 17 00:00:00 2001 From: Will Freeman Date: Tue, 24 Dec 2024 17:06:49 -0800 Subject: [PATCH] update cluster radius, various cleanups --- webapp/src/components/DFMapPopup.vue | 4 ++-- webapp/src/components/LeafletMap.vue | 1 + webapp/src/services/apiService.ts | 6 ------ webapp/src/stores/tiles.ts | 2 +- webapp/src/views/Map.vue | 26 ++------------------------ 5 files changed, 6 insertions(+), 33 deletions(-) diff --git a/webapp/src/components/DFMapPopup.vue b/webapp/src/components/DFMapPopup.vue index 4d86058..478e5d8 100644 --- a/webapp/src/components/DFMapPopup.vue +++ b/webapp/src/components/DFMapPopup.vue @@ -14,12 +14,12 @@ mdi-compass-outline {{ cardinalDirection }} - mdi-domain + mdi-factory {{ alpr.tags.brand }} - Unknown Brand + Unknown Manufacturer diff --git a/webapp/src/components/LeafletMap.vue b/webapp/src/components/LeafletMap.vue index 2d9858e..e72c701 100644 --- a/webapp/src/components/LeafletMap.vue +++ b/webapp/src/components/LeafletMap.vue @@ -187,6 +187,7 @@ function populateMap() { chunkedLoading: true, disableClusteringAtZoom: 16, // showFov threshold removeOutsideVisibleBounds: true, + maxClusterRadius: 60, }); circlesLayer = L.featureGroup(); diff --git a/webapp/src/services/apiService.ts b/webapp/src/services/apiService.ts index 88b45db..7374f23 100644 --- a/webapp/src/services/apiService.ts +++ b/webapp/src/services/apiService.ts @@ -71,12 +71,6 @@ export const getALPRCounts = async () => { return response.data; } -export const getClusters = async () => { - const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/alpr_clusters.json"; - const response = await apiService.get(s3Url); - return response.data; -} - export const getCities = async () => { const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/flock_cameras_null.json"; const response = await apiService.get(s3Url); diff --git a/webapp/src/stores/tiles.ts b/webapp/src/stores/tiles.ts index 9110214..425040a 100644 --- a/webapp/src/stores/tiles.ts +++ b/webapp/src/stores/tiles.ts @@ -1,5 +1,5 @@ import { defineStore } from 'pinia'; -import { onBeforeMount, computed, ref, type Ref } from 'vue'; +import { computed, ref, type Ref } from 'vue'; import type { ALPR } from '@/types'; import axios from 'axios'; import type { BoundingBox } from '@/services/apiService'; // TODO: this is a strange place to hold this type diff --git a/webapp/src/views/Map.vue b/webapp/src/views/Map.vue index 57ea63b..351fc23 100644 --- a/webapp/src/views/Map.vue +++ b/webapp/src/views/Map.vue @@ -1,9 +1,5 @@