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 }
|
position: { lat, lng: lon }
|
||||||
});
|
});
|
||||||
|
|
||||||
if (title || desc) {
|
// if (title || desc) {
|
||||||
const { InfoWindow } = await google.maps.importLibrary("maps");
|
// const { InfoWindow } = await google.maps.importLibrary("maps");
|
||||||
const info = new InfoWindow({
|
// const info = new InfoWindow({
|
||||||
content: `
|
// content: `
|
||||||
<div class="f-info-window">
|
// <div class="f-info-window">
|
||||||
<div class="f-info-header">
|
// <div class="f-info-header">
|
||||||
<div class="f-info-city">${title}</div>
|
// <div class="f-info-city">${title}</div>
|
||||||
<div class="f-info-street">${desc}</div>
|
// <div class="f-info-street">${desc}</div>
|
||||||
</div>
|
// </div>
|
||||||
</div>
|
// </div>
|
||||||
`
|
// `
|
||||||
});
|
// });
|
||||||
|
|
||||||
info.open({ map, anchor: marker });
|
// info.open({ map, anchor: marker });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error initializing map:", error);
|
console.error("Error initializing map:", error);
|
||||||
|
|||||||
@@ -49,7 +49,9 @@ const seo = loadYaml("./src/content/mapa-zasiegu/seo.yaml");
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<div class="md:pl-10">
|
||||||
<SectionRenderer src="./src/content/site/area-section.yaml" />
|
<SectionRenderer src="./src/content/site/area-section.yaml" />
|
||||||
|
</div>
|
||||||
<script is:inline>
|
<script is:inline>
|
||||||
let fiberLayer = null;
|
let fiberLayer = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user