summaryrefslogtreecommitdiff
path: root/src/components/widgets/Map.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/widgets/Map.astro')
-rw-r--r--src/components/widgets/Map.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/widgets/Map.astro b/src/components/widgets/Map.astro
index dae8253..76d81a4 100644
--- a/src/components/widgets/Map.astro
+++ b/src/components/widgets/Map.astro
@@ -21,11 +21,11 @@ const {
// Use provided coordinates or default to Bydgoszcz, MiedzyƄ
const coordinates = {
lat: lat,
- lon: lon
+ lon: lon,
};
// 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}`;
+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}`;
---
<WidgetWrapper id={id} isDark={isDark} containerClass={`max-w-7xl mx-auto ${classes?.container ?? ''}`} bg={bg}>
@@ -57,4 +57,4 @@ const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinat
</div>
</div>
</div>
-</WidgetWrapper> \ No newline at end of file
+</WidgetWrapper>