Move some UI to Stimulus + Lo Pozzo geojson
This commit is contained in:
@@ -72,6 +72,7 @@ const MARKER_NAMES = {
|
||||
'san_michele' : 'Villa San Michele',
|
||||
'scala_fenicia' : 'Scala Fenicia',
|
||||
'grotta_azzurra' : 'Grotta Azzurra',
|
||||
'lopozzo' : 'Località Lo Pozzo',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -150,6 +151,9 @@ GIS.initMap = async function (mapId, zoomLevel = this.INIT_ZOOM) {
|
||||
archeo,
|
||||
).addTo(map);
|
||||
|
||||
// TEMP!! Remove point for Lo Pozzo...
|
||||
map.removeLayer(sitesGroup.customGetLayer('lopozzo'));
|
||||
|
||||
// TODO Horrible?
|
||||
return {map: map, sites: sitesGroup};
|
||||
}
|
||||
@@ -295,6 +299,7 @@ GIS.initLayers = async function(map) {
|
||||
let layerTiberio = await this.loadLayer('tiberio.geojson', optionsSiti, false);
|
||||
let layerScala = await this.loadLayer('scala_fenicia.geojson', optionsSiti, false);
|
||||
let layerGrotta = await this.loadLayer('grotta_azzurra.geojson', optionsGrotta, false);
|
||||
let layerLopozzo = await this.loadLayer('lopozzo.geojson', optionsSiti, false);
|
||||
|
||||
layerMater.id = 'matermania';
|
||||
layerMaterArea.id = 'matermania_area';
|
||||
@@ -308,6 +313,7 @@ GIS.initLayers = async function(map) {
|
||||
layerTiberio.id = 'tiberio';
|
||||
layerScala.id = 'scala_fenicia';
|
||||
layerGrotta.id = 'grotta_azzurra';
|
||||
layerLopozzo.id = 'lopozzo';
|
||||
|
||||
let osmap = new L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxNativeZoom : 22,
|
||||
@@ -339,6 +345,7 @@ GIS.initLayers = async function(map) {
|
||||
layerTiberio,
|
||||
layerScala,
|
||||
layerGrotta,
|
||||
layerLopozzo
|
||||
]);
|
||||
const baseGroup = new L.LayerGroup([osmap]);
|
||||
baseGroup.addTo(map);
|
||||
|
||||
Reference in New Issue
Block a user