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:
1 parent
f23d4aa1f5
commit
b9cf227d92
3 files changed
+11
-6
No files matched your search
@@ -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')),
|
||||
|
||||
Reference in new issue
Block a user