Complete tech layers for Tiberio
This commit is contained in:
+5
-3
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user