Complete tech layers for Tiberio

This commit is contained in:
2026-09-20 17:41:57 +02:00
parent 5942cf37b4
commit 399612bad1
14 changed files with 186 additions and 108 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ export default class extends Controller {
// Restore layer groups in map
for (const key of Object.keys(GisState.layers)) {
map.addLayer(GisState.layers[key]);
if (GisState.layers[key] instanceof L.Layer) map.addLayer(GisState.layers[key]);
}
// Empty result set
+5 -3
View File
@@ -100,8 +100,10 @@ GIS.initMap = async function (mapId, zoomLevel = this.INIT_ZOOM) {
L.control.layers(baseMap, cartography).addTo(map);
// TEST: marker with SVG icon...
L.marker([40.5591380,14.2296069], { icon: Icons.wall, id: 'tiberio' })
.on('click', () => this.activateBuildingView('tiberio'))
L.marker([40.5591093,14.2292432], { icon: Icons.wall, id: 'tiberio' })
.on('click', () => {
if (!GisState.bViewActive) this.activateBuildingView('tiberio')
})
.bindTooltip('Mappa di dettaglio interattiva')
.addTo(map);
@@ -138,7 +140,7 @@ GIS.activateBuildingView = async function(layerId) {
try {
const wallLayer = await this.loadGeoJSON(
`murarie/${layerId}/${tech}.geojson`,
Options.walls[tech],
Options.walls[tech] ?? {...Options.site, weight: 3},
true
);
+1 -1
View File
@@ -73,7 +73,7 @@ Options.walls = {
fillOpacity: 1,
opacity: 1,
weight: 3,
}
},
};
Options.cluster = {
spiderfyOnMaxZoom: false,
+3
View File
@@ -10,6 +10,9 @@ export const TECH_LAYERS = {
"incerta",
"mista",
"reticolata",
"elementi",
"rivestimenti",
"nulla",
],
};
/**