From 182ee75c0d07b51510c0f8ce56bd47e17ca81916 Mon Sep 17 00:00:00 2001 From: nocnico Date: Tue, 20 May 2025 22:47:29 +0200 Subject: [PATCH] Edit cluster zoom to 8 --- apps/dispatch/app/dispatch/_components/map/AircraftMarker.tsx | 2 +- apps/dispatch/app/dispatch/_components/map/MissionMarkers.tsx | 2 +- .../app/dispatch/_components/map/_components/MarkerCluster.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dispatch/app/dispatch/_components/map/AircraftMarker.tsx b/apps/dispatch/app/dispatch/_components/map/AircraftMarker.tsx index 330f2ecf..2390ecf6 100644 --- a/apps/dispatch/app/dispatch/_components/map/AircraftMarker.tsx +++ b/apps/dispatch/app/dispatch/_components/map/AircraftMarker.tsx @@ -332,7 +332,7 @@ const AircraftMarker = ({ const handleZoom = () => { const zoom = map.getZoom(); - setHideMarker(zoom < 9); + setHideMarker(zoom < 8); handleConflict(); }; diff --git a/apps/dispatch/app/dispatch/_components/map/MissionMarkers.tsx b/apps/dispatch/app/dispatch/_components/map/MissionMarkers.tsx index bb4b9dcc..c24a8cf3 100644 --- a/apps/dispatch/app/dispatch/_components/map/MissionMarkers.tsx +++ b/apps/dispatch/app/dispatch/_components/map/MissionMarkers.tsx @@ -277,7 +277,7 @@ const MissionMarker = ({ mission }: { mission: Mission }) => { const handleZoom = () => { const zoom = map.getZoom(); - setHideMarker(zoom < 9); + setHideMarker(zoom < 8); handleConflict(); }; diff --git a/apps/dispatch/app/dispatch/_components/map/_components/MarkerCluster.tsx b/apps/dispatch/app/dispatch/_components/map/_components/MarkerCluster.tsx index b0da9b0d..144f304f 100644 --- a/apps/dispatch/app/dispatch/_components/map/_components/MarkerCluster.tsx +++ b/apps/dispatch/app/dispatch/_components/map/_components/MarkerCluster.tsx @@ -251,7 +251,7 @@ export const MarkerCluster = () => { }; }); - if (zoom >= 9) { + if (zoom >= 8) { setCluster([]); } else { setCluster(clusterWithAvgPos);