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
+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
);