Test Egypt

This commit is contained in:
Nicolò P 2023-09-06 17:54:22 +02:00
parent 0fc93a92af
commit 788e174831
2 changed files with 2515 additions and 2 deletions

2491
fieldwork.geojson Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,9 +3,10 @@ document.addEventListener('DOMContentLoaded', async () => {
map.crs = L.CRS.EPSG4326;
const geoJSON = await fetch('/world.geojson').then(res => res.json());
const world = await fetch('/world.geojson').then(res => res.json());
const fieldwork = await fetch('/fieldwork.geojson').then(res => res.json());
L.geoJson(geoJSON,{
L.geoJson(world,{
style: function () {
return {
color: '#fff',
@ -17,4 +18,25 @@ document.addEventListener('DOMContentLoaded', async () => {
}
}).addTo(map);
L.geoJson(fieldwork,{
style: function () {
return {
opacity: 0,
fillColor: '#ce1417',
fillOpacity: 1
};
}
}).addTo(map);
//TEST Egitto
let egypt1 = L.marker([30.551944, 32.098611], {
title: 'Tell el-Maskhuta',
riseOnHover : true
}).addTo(map);
let egypt2 = L.marker([30.5494,31.9636], {
title: 'Wadi Tumilat',
riseOnHover : true
}).addTo(map);
})