From b77f010e5e7f0f950588695503b2c687a2d9cf3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Wed, 12 Jun 2024 16:19:08 +0200 Subject: [PATCH] More UI stuff... --- js/caprigis.js | 12 ++++++------ js/ui.js | 26 +++++--------------------- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/js/caprigis.js b/js/caprigis.js index e6ca126..ae28b08 100644 --- a/js/caprigis.js +++ b/js/caprigis.js @@ -173,12 +173,12 @@ GIS.loadLayer = async function (geoJSON, options, popup = true) { */ GIS.featurePopup = function (layerName, feature) { const html = ` - - - - - - +
Oggetto${feature.properties.OGGETTO}
Anno${feature.properties.ANNO}
Comune${capitalize(feature.properties.COMUNE)}
Località${capitalize(feature.properties.LOCALITA)}
Proprietà${capitalize(feature.properties.PROPRIETA)}
+ + + + +
Oggetto${feature.properties.OGGETTO}
Anno${feature.properties.ANNO}
Comune${capitalize(feature.properties.COMUNE)}
Località${capitalize(feature.properties.LOCALITA)}
Proprietà${capitalize(feature.properties.PROPRIETA)}
`; const content = { diff --git a/js/ui.js b/js/ui.js index 4357672..17dbfd3 100644 --- a/js/ui.js +++ b/js/ui.js @@ -5,26 +5,6 @@ */ const UI = {}; -const centerIcon = ` - - -`; - /** * Add a control to center the map * @param {Map} map @@ -48,7 +28,11 @@ UI.addCenterMapControl = function (map, centerCoords, zoom) { let controlUI = L.DomUtil.create('a', 'leaflet-draw-edit-remove', controlDiv); controlUI.title = 'Centra la mappa'; controlUI.href = '#'; - controlUI.innerHTML = centerIcon; + controlUI.innerHTML = ` + + + + `; return controlDiv; } });