diff --git a/templates/map.html b/templates/map.html index 97b598d..1d0204f 100644 --- a/templates/map.html +++ b/templates/map.html @@ -426,10 +426,10 @@

Zoom

- +
-
100%
+
50%
@@ -471,7 +471,7 @@ const mapImageUrls = { }; let currentMap = "{{ default_map }}"; -let currentZoom = 1; +let currentZoom = 0.5; let activeMarkerId = null; const enabledTypes = { player: true, vehicle: true, base: true }; @@ -537,7 +537,7 @@ function setZoom(nextZoom, keepCenter = true) { const relativeX = oldZoom ? viewportCenterX / oldZoom : 0; const relativeY = oldZoom ? viewportCenterY / oldZoom : 0; - currentZoom = Math.min(3.5, Math.max(0.5, nextZoom)); + currentZoom = Math.min(3.5, Math.max(0.25, nextZoom)); els.canvas.style.width = `${map.width * currentZoom}px`; els.canvas.style.height = `${map.height * currentZoom}px`; els.zoomSlider.value = Math.round(currentZoom * 100); @@ -669,7 +669,7 @@ function renderAll(resetView = false) { els.image.src = mapImageUrls[map.key] || ''; els.image.alt = map.label; - setZoom(resetView ? 1 : currentZoom, !resetView); + setZoom(resetView ? 0.5 : currentZoom, !resetView); if (resetView) { requestAnimationFrame(() => {