No point layers in control; add visibility toggle in menu
This commit is contained in:
@@ -138,11 +138,6 @@ GIS.initMap = async function (mapId, zoomLevel = this.INIT_ZOOM) {
|
||||
let prehistoric = await this.prehistoric();
|
||||
|
||||
const archeo = {
|
||||
'Beni archeologici (punti)' : markersGroup,
|
||||
'Beni archeologici (strutture)' : sitesGroup,
|
||||
'Beni non conservati' : notConservedGroup,
|
||||
'Rinvenimenti' : findingsGroup,
|
||||
'Siti preistorici' : prehistoric,
|
||||
'Vincoli archeologici' : layerVincoli,
|
||||
'Vincoli paesistici' : layerPaesistici,
|
||||
};
|
||||
@@ -155,6 +150,11 @@ GIS.initMap = async function (mapId, zoomLevel = this.INIT_ZOOM) {
|
||||
findingsGroup.addTo(map);
|
||||
prehistoric.addTo(map);
|
||||
|
||||
window.Sites = markersGroup;
|
||||
window.NotConserved = notConservedGroup;
|
||||
window.Findings = findingsGroup;
|
||||
window.Prehistoric = prehistoric;
|
||||
|
||||
L.control.layers(baseMap, archeo).addTo(map);
|
||||
|
||||
return map;
|
||||
|
||||
Reference in New Issue
Block a user