Per-map default zoom levels: HaggaBasin 0%, DeepDesert 145%

- HaggaBasin defaults to 0% zoom for full map view
- DeepDesert defaults to 145% zoom since map is much smaller
- Zoom slider min changed from 25% to 0%
- Added default_zoom to map options in build_map_options
This commit is contained in:
Reditus committed 2026-05-16 13:55:38 +01:00
1 parent f23d4aa1f5
commit b9cf227d92
3 files changed
+11 -6

No files matched your search

+1
View File
@@ -504,6 +504,7 @@ def register_routes(app, services, settings):
'image': cfg.get('image'),
'width': image_size.get('width', 1000),
'height': image_size.get('height', 1000),
'default_zoom': cfg.get('default_zoom', 0.5),
'counts': {
'players': sum(1 for p in player_locations if p.get('map') == key and p.get('in_bounds')),
'vehicles': sum(1 for v in vehicle_locations if v.get('map') == key and v.get('in_bounds')),