diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 17:11:44 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 17:11:44 +0300 |
| commit | d6608c822370ca7aad42c0ed54caf421ead8bb50 (patch) | |
| tree | 468ec79a662b1bdfa48e78b2657ce490f5e30192 /src/components/widgets/Map.astro | |
| parent | 6c71a67a7473ee30c424ac63b4d2b27c38007d5e (diff) | |
Update widget
Diffstat (limited to 'src/components/widgets/Map.astro')
| -rw-r--r-- | src/components/widgets/Map.astro | 6 |
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> |
