From f0fcb33a675606182123cccf27411fd7d29f79b8 Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Wed, 19 Feb 2025 01:14:48 -0800 Subject: [PATCH] minzoom increase thresholds a bit --- src/components/addLayers/addLiveDots.ts | 2 +- src/components/fetch_realtime_vehicle_locations.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/addLayers/addLiveDots.ts b/src/components/addLayers/addLiveDots.ts index a7ae218..acfa0cc 100644 --- a/src/components/addLayers/addLiveDots.ts +++ b/src/components/addLayers/addLiveDots.ts @@ -84,7 +84,7 @@ export async function makeCircleLayers(map: Map, darkMode: boolean, layerspercat //'circle-emissive-strength': 1, 'circle-opacity': 0.5 }, - minzoom: shortest_screen_width < 768 ? 7 : 6 + minzoom: shortest_screen_width < 768 ? 8 : 7 }); map.addLayer({ diff --git a/src/components/fetch_realtime_vehicle_locations.ts b/src/components/fetch_realtime_vehicle_locations.ts index ba5bdf0..efb4aba 100644 --- a/src/components/fetch_realtime_vehicle_locations.ts +++ b/src/components/fetch_realtime_vehicle_locations.ts @@ -25,7 +25,7 @@ export function fetch_realtime_vehicle_locations( let shortest_screen_width = Math.min(window.screen.width, window.screen.height); - let bus_threshold = shortest_screen_width < 768 ? 7 : 6; + let bus_threshold = shortest_screen_width < 768 ? 7.5 : 6.5; if (layersettings.bus.visible) { if (map.getZoom() >= bus_threshold) {