Kontakt ukruty dymek, Lista miejscowości wyrównywanie pod mapą
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user