From 1cff6d9db677737e6bcb1edb35240d1c2c037d7f Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 5 Aug 2025 20:02:35 +0300 Subject: feat: fix map scroll --- src/components/widgets/Map.astro | 97 ++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 53 deletions(-) (limited to 'src/components/widgets') diff --git a/src/components/widgets/Map.astro b/src/components/widgets/Map.astro index ec36669..6c04220 100644 --- a/src/components/widgets/Map.astro +++ b/src/components/widgets/Map.astro @@ -24,8 +24,8 @@ const coordinates = { lon: lon, }; -// Create map URL with proper coordinates and disabled scroll wheel zoom -const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinates.lon - 0.01},${coordinates.lat - 0.01},${coordinates.lon + 0.01},${coordinates.lat + 0.01}&layer=mapnik&marker=${coordinates.lat},${coordinates.lon}&scrollWheelZoom=false`; +// Create map URL with proper coordinates +const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinates.lon - 0.01},${coordinates.lat - 0.01},${coordinates.lon + 0.01},${coordinates.lat + 0.01}&layer=mapnik&marker=${coordinates.lat},${coordinates.lon}`; --- @@ -33,7 +33,7 @@ const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinat
-
+
+
+
+
🗺️
+

Kliknij, aby włączyć mapę

+

Click to enable map

+
+
@@ -118,3 +82,30 @@ const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinat
+ + -- cgit v1.2.3