Test Egypt
This commit is contained in:
parent
0fc93a92af
commit
788e174831
2491
fieldwork.geojson
Normal file
2491
fieldwork.geojson
Normal file
File diff suppressed because it is too large
Load Diff
26
js/index.js
26
js/index.js
@ -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);
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user