diff --git a/app/config.py b/app/config.py index 946bd18..91d88d8 100644 --- a/app/config.py +++ b/app/config.py @@ -73,7 +73,7 @@ DEFAULTS = { 'renewal_days_before_expiry': 30, }, 'maps': { - 'default_map': 'DeepDesert', + 'default_map': 'HaggaBasin', 'DeepDesert': { 'image': 'maps/Deep_Desert_Map1.jpg', 'label': 'The Deep Desert', @@ -84,7 +84,8 @@ DEFAULTS = { 'max_y': -620340 }, 'flip_y': False, - 'image_size': {'width': 683, 'height': 683} + 'image_size': {'width': 683, 'height': 683}, + 'default_zoom': 1.45 }, 'HaggaBasin': { 'image': 'maps/HaggaBasin_8k.webp', @@ -96,7 +97,8 @@ DEFAULTS = { 'max_y': 237943 }, 'flip_y': False, - 'image_size': {'width': 8000, 'height': 8000} + 'image_size': {'width': 8000, 'height': 8000}, + 'default_zoom': 0 } }, } diff --git a/app/routes/main.py b/app/routes/main.py index 2f9dad3..aa0fe37 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -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')), diff --git a/templates/map.html b/templates/map.html index 1d0204f..e2a7641 100644 --- a/templates/map.html +++ b/templates/map.html @@ -426,7 +426,7 @@