Skip to content

Commit

Permalink
minzoom increase thresholds a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Feb 19, 2025
1 parent b7dbc61 commit f0fcb33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/addLayers/addLiveDots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/components/fetch_realtime_vehicle_locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f0fcb33

Please sign in to comment.