diff --git a/templates/map.html b/templates/map.html index 7b1cd55..6b3e36f 100644 --- a/templates/map.html +++ b/templates/map.html @@ -433,7 +433,7 @@ -
15%
+
100%
@@ -475,8 +475,8 @@ const mapImageUrls = { }; let currentMap = "{{ default_map }}"; -let currentZoom = 0.5; -let defaultZoom = 0.5; +let currentZoom = 0; +let defaultZoom = 0.15; let activeMarkerId = null; const enabledTypes = { player: true, vehicle: true, base: true }; @@ -484,6 +484,10 @@ if (!mapOptions.some(map => map.key === currentMap) && mapOptions.length) { currentMap = mapOptions[0].key; } +const mapDefaultZoom = (mapOptions.find(m => m.key === currentMap) || mapOptions[0] || {}).default_zoom || 0.15; +currentZoom = mapDefaultZoom; +defaultZoom = mapDefaultZoom; + const els = { choices: document.getElementById('map-choices'), scroll: document.getElementById('map-scroll'),