Additional layers
This commit is contained in:
parent
8699bd01c7
commit
f2f6e7c359
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,5 +4,7 @@
|
|||||||
*.rar
|
*.rar
|
||||||
*.shp*
|
*.shp*
|
||||||
*.log
|
*.log
|
||||||
|
*.zip
|
||||||
vendor/
|
vendor/
|
||||||
docs/
|
docs/
|
||||||
|
progetto_QGIS/
|
||||||
|
12
geojson/confini.geojson
Normal file
12
geojson/confini.geojson
Normal file
File diff suppressed because one or more lines are too long
5389
geojson/fabbricati.geojson
Normal file
5389
geojson/fabbricati.geojson
Normal file
File diff suppressed because one or more lines are too long
9
geojson/mura.geojson
Normal file
9
geojson/mura.geojson
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"type": "FeatureCollection",
|
||||||
|
"name": "mura",
|
||||||
|
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
|
||||||
|
"features": [
|
||||||
|
{ "type": "Feature", "properties": { "id": 1, "TIPO": "MURA POLIGONALE III MANIERA" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ 14.243419275071911, 40.551572447265045 ], [ 14.243370616203077, 40.551535961431654 ] ] ] } },
|
||||||
|
{ "type": "Feature", "properties": { "id": 2, "TIPO": "MURA POLIGONALE IV MANIERA" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ 14.243370616203077, 40.551535961431654 ], [ 14.243292573942712, 40.55149176623128 ] ] ] } }
|
||||||
|
]
|
||||||
|
}
|
@ -59,6 +59,9 @@
|
|||||||
<a class="button" id="arsenale">
|
<a class="button" id="arsenale">
|
||||||
Grotta dell'Arsenale
|
Grotta dell'Arsenale
|
||||||
</a>
|
</a>
|
||||||
|
<a class="button" id="mura">
|
||||||
|
Mura greche
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
|
16
js/gis.js
16
js/gis.js
@ -137,6 +137,7 @@ GIS.initLayers = async function(map) {
|
|||||||
let layerArsenaleArea = await this.loadLayer('arsenale_area.geojson', optionsSiti, false);
|
let layerArsenaleArea = await this.loadLayer('arsenale_area.geojson', optionsSiti, false);
|
||||||
let layerGradola = await this.loadLayer('gradola.geojson', optionsSiti, false);
|
let layerGradola = await this.loadLayer('gradola.geojson', optionsSiti, false);
|
||||||
let layerGradolaArea = await this.loadLayer('gradola_area.geojson', optionsSiti, false);
|
let layerGradolaArea = await this.loadLayer('gradola_area.geojson', optionsSiti, false);
|
||||||
|
let layerMura = await this.loadLayer('mura.geojson', optionsSiti, false);
|
||||||
|
|
||||||
layerMater.id = 'matermania';
|
layerMater.id = 'matermania';
|
||||||
layerMaterArea.id = 'matermania_area';
|
layerMaterArea.id = 'matermania_area';
|
||||||
@ -144,6 +145,7 @@ GIS.initLayers = async function(map) {
|
|||||||
layerGradolaArea.id = 'gradola_area';
|
layerGradolaArea.id = 'gradola_area';
|
||||||
layerArsenale.id = 'arsenale';
|
layerArsenale.id = 'arsenale';
|
||||||
layerArsenaleArea.id = 'arsenale_area';
|
layerArsenaleArea.id = 'arsenale_area';
|
||||||
|
layerMura.id = 'mura';
|
||||||
|
|
||||||
let layerVincoli = await this.loadLayer('vincoli.geojson', optionsVincoli);
|
let layerVincoli = await this.loadLayer('vincoli.geojson', optionsVincoli);
|
||||||
// TODO named parameters??
|
// TODO named parameters??
|
||||||
@ -153,6 +155,14 @@ GIS.initLayers = async function(map) {
|
|||||||
maxZoom: 22,
|
maxZoom: 22,
|
||||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||||
});
|
});
|
||||||
|
let esriSat = new L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
|
||||||
|
maxNativeZoom : 22,
|
||||||
|
maxZoom: 22,
|
||||||
|
attribution: '© Esri'
|
||||||
|
});
|
||||||
|
let boundaries = await this.loadLayer('confini.geojson', {}, false);
|
||||||
|
let buildings = await this.loadLayer('fabbricati.geojson', optionsPaesistici, false);
|
||||||
|
let baseCatasto = new L.LayerGroup([buildings, boundaries]);
|
||||||
|
|
||||||
const sitesGroup = new L.LayerGroup([
|
const sitesGroup = new L.LayerGroup([
|
||||||
layerMater,
|
layerMater,
|
||||||
@ -161,12 +171,15 @@ GIS.initLayers = async function(map) {
|
|||||||
layerGradolaArea,
|
layerGradolaArea,
|
||||||
layerArsenale,
|
layerArsenale,
|
||||||
layerArsenaleArea,
|
layerArsenaleArea,
|
||||||
|
layerMura,
|
||||||
]);
|
]);
|
||||||
const baseGroup = new L.LayerGroup([osmap]);
|
const baseGroup = new L.LayerGroup([osmap]);
|
||||||
baseGroup.addTo(map);
|
baseGroup.addTo(map);
|
||||||
sitesGroup.addTo(map);
|
sitesGroup.addTo(map);
|
||||||
const baseMap = {
|
const baseMap = {
|
||||||
"OpenStreetMap" : osmap
|
"OpenStreetMap" : osmap,
|
||||||
|
"Satellite" : esriSat,
|
||||||
|
"Cartografia catastale" : baseCatasto,
|
||||||
};
|
};
|
||||||
const archeo = {
|
const archeo = {
|
||||||
"Villa di Gradola (planimetria)" : layerGradola,
|
"Villa di Gradola (planimetria)" : layerGradola,
|
||||||
@ -175,6 +188,7 @@ GIS.initLayers = async function(map) {
|
|||||||
"Grotta di Matermania (area)" : layerMaterArea,
|
"Grotta di Matermania (area)" : layerMaterArea,
|
||||||
"Grotta dell'Arsenale (planimetria)" : layerArsenale,
|
"Grotta dell'Arsenale (planimetria)" : layerArsenale,
|
||||||
"Grotta dell'Arsenale (area)" : layerArsenaleArea,
|
"Grotta dell'Arsenale (area)" : layerArsenaleArea,
|
||||||
|
"Mura greche" : layerMura,
|
||||||
"Vincoli archeologici" : layerVincoli,
|
"Vincoli archeologici" : layerVincoli,
|
||||||
"Vincoli paesistici" : layerPaesistici,
|
"Vincoli paesistici" : layerPaesistici,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user