diff --git a/web/templates/public/campground.gohtml b/web/templates/public/campground.gohtml index bfa8a1e..3e1ff61 100644 --- a/web/templates/public/campground.gohtml +++ b/web/templates/public/campground.gohtml @@ -28,13 +28,15 @@ const latLngBounds = L.latLngBounds([[0, 0], [1192, 1500]]); const map = L.map(container, { center: latLngBounds.getCenter(), - zoom: 4, + minZoom: -2, + maxZoom: 3, + zoom: -1, scrollWheelZoom: false, maxBounds: latLngBounds, maxBoundsViscosity: 1.0, zoomSnap: 0, + crs: L.CRS.Simple, }); - map.setMinZoom(map.getBoundsZoom(latLngBounds, true)); map.fitBounds(latLngBounds); L.svgOverlay(svg, latLngBounds).addTo(map); })();