diff --git a/webgis/js/gis.js b/webgis/js/gis.js index 45fa7e2..24e5d7d 100644 --- a/webgis/js/gis.js +++ b/webgis/js/gis.js @@ -140,7 +140,7 @@ GIS.buildingTechs = async function () { techs.addLayer(marker); const markerLabel = `${record.coordinates[0]} ${record.coordinates[1]}`; marker.options.data = record; - marker.options.site = record.site.label; + marker.options.site = record.site?.label; GisState.markers.buildingTechs[markerLabel] = marker; } diff --git a/webgis/js/ui.js b/webgis/js/ui.js index 95c4b22..5e4f871 100644 --- a/webgis/js/ui.js +++ b/webgis/js/ui.js @@ -277,18 +277,28 @@ UI.imageGallery = function (galleryId, items, video = false) { * @returns {string} */ UI.createBuildingTechTable = function(record) { - return html` + let table = html`
| Tecnica | ${record.technique} |
|---|---|
| Descrizione | ${record.description} |
| Funzione | ${record.function} |
| Materiale | ${record.material} |
| Sito | ${record.site.label} |
| Comune | ${record.municipality} |