Kontakt ukruty dymek, Lista miejscowości wyrównywanie pod mapą

This commit is contained in:
dm
2025-12-21 13:00:32 +01:00
parent 4e44fff8c0
commit 832ee2e796
2 changed files with 17 additions and 15 deletions

View File

@@ -102,21 +102,21 @@ const domId = `fuz-map-${Math.random().toString(36).slice(2)}`;
position: { lat, lng: lon }
});
if (title || desc) {
const { InfoWindow } = await google.maps.importLibrary("maps");
const info = new InfoWindow({
content: `
<div class="f-info-window">
<div class="f-info-header">
<div class="f-info-city">${title}</div>
<div class="f-info-street">${desc}</div>
</div>
</div>
`
});
// if (title || desc) {
// const { InfoWindow } = await google.maps.importLibrary("maps");
// const info = new InfoWindow({
// content: `
// <div class="f-info-window">
// <div class="f-info-header">
// <div class="f-info-city">${title}</div>
// <div class="f-info-street">${desc}</div>
// </div>
// </div>
// `
// });
info.open({ map, anchor: marker });
}
// info.open({ map, anchor: marker });
// }
}
} catch (error) {
console.error("Error initializing map:", error);

View File

@@ -49,7 +49,9 @@ const seo = loadYaml("./src/content/mapa-zasiegu/seo.yaml");
/>
</div>
</section>
<div class="md:pl-10">
<SectionRenderer src="./src/content/site/area-section.yaml" />
</div>
<script is:inline>
let fiberLayer = null;