Initial commit

This commit is contained in:
2023-09-06 17:03:51 +02:00
commit 0fc93a92af
5 changed files with 962207 additions and 0 deletions

20
js/index.js Normal file
View File

@@ -0,0 +1,20 @@
document.addEventListener('DOMContentLoaded', async () => {
const map = L.map('map').setView([27.49, -9.3], 3);
map.crs = L.CRS.EPSG4326;
const geoJSON = await fetch('/world.geojson').then(res => res.json());
L.geoJson(geoJSON,{
style: function () {
return {
color: '#fff',
opacity: 0.4,
weight: 2,
fillColor: '#19365e',
fillOpacity: 1
};
}
}).addTo(map);
})