Complete tech layers for Tiberio
This commit is contained in:
@@ -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
@@ -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
|
||||
);
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ Options.walls = {
|
||||
fillOpacity: 1,
|
||||
opacity: 1,
|
||||
weight: 3,
|
||||
}
|
||||
},
|
||||
};
|
||||
Options.cluster = {
|
||||
spiderfyOnMaxZoom: false,
|
||||
|
||||
@@ -10,6 +10,9 @@ export const TECH_LAYERS = {
|
||||
"incerta",
|
||||
"mista",
|
||||
"reticolata",
|
||||
"elementi",
|
||||
"rivestimenti",
|
||||
"nulla",
|
||||
],
|
||||
};
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user