Edit cluster zoom to 8

This commit is contained in:
nocnico
2025-05-20 22:47:29 +02:00
parent 5efe205717
commit 182ee75c0d
3 changed files with 3 additions and 3 deletions

View File

@@ -332,7 +332,7 @@ const AircraftMarker = ({
const handleZoom = () => { const handleZoom = () => {
const zoom = map.getZoom(); const zoom = map.getZoom();
setHideMarker(zoom < 9); setHideMarker(zoom < 8);
handleConflict(); handleConflict();
}; };

View File

@@ -277,7 +277,7 @@ const MissionMarker = ({ mission }: { mission: Mission }) => {
const handleZoom = () => { const handleZoom = () => {
const zoom = map.getZoom(); const zoom = map.getZoom();
setHideMarker(zoom < 9); setHideMarker(zoom < 8);
handleConflict(); handleConflict();
}; };

View File

@@ -251,7 +251,7 @@ export const MarkerCluster = () => {
}; };
}); });
if (zoom >= 9) { if (zoom >= 8) {
setCluster([]); setCluster([]);
} else { } else {
setCluster(clusterWithAvgPos); setCluster(clusterWithAvgPos);