Finish home page

This commit is contained in:
2024-12-02 10:11:04 +01:00
parent 96ec738f6b
commit 7f3f90db3a
10 changed files with 154 additions and 6 deletions

View File

@@ -14,14 +14,14 @@ export default class extends Controller {
const coords = event.currentTarget
.getAttribute('data-coords').split(' ');
let marker = this.getMarker(map, coords);
marker?.openTooltip();
map.setView(
coords,
this.END_ZOOM,
this.mapAnimate
);
let marker = this.getMarker(map, coords);
marker?.openTooltip();
}
/**
* @param {L.Map} map

View File

@@ -122,7 +122,11 @@ UI.openSiteModal = async function (data, selector) {
siteDocs.siteData = data;
docs.innerHTML = siteDocs.render();
} else {
docs.innerHTML = '<p class="has-text-centered">Nessun documento disponibile</p>'
docs.innerHTML = `
<p class="has-text-centered">
${data.documentation}
</p>
`;
}
let surveys = data.images.filter(i => i.type === 'Survey');