Initial commit
This commit is contained in:
commit
0fc93a92af
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*.swp
|
||||
*.swo
|
||||
*.rar
|
||||
*.shp*
|
39
index.html
Normal file
39
index.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="stylesheet" href="css/spectre.css" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
||||
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
|
||||
crossorigin=""/>
|
||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
|
||||
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
|
||||
crossorigin=""></script>
|
||||
<!--
|
||||
<script src="js/qrious.min.js" type="text/javascript"></script>
|
||||
-->
|
||||
<script src="js/index.js" type="text/javascript"></script>
|
||||
<title>CentAppe</title>
|
||||
<style>
|
||||
.leaflet-container {
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="main">
|
||||
</nav>
|
||||
|
||||
<h1 class="text-center mt-2">Mappetta??</h1>
|
||||
|
||||
<div class="container main">
|
||||
<div id="map" style="height: 700px; margin: 0 auto">
|
||||
</div>
|
||||
</div>
|
||||
<footer class="container text-center text-italic p-2">
|
||||
<p class="p-1">Powered by NicoPa</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
20
js/index.js
Normal file
20
js/index.js
Normal 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);
|
||||
|
||||
})
|
962100
world.geojson
Normal file
962100
world.geojson
Normal file
File diff suppressed because it is too large
Load Diff
44
world.qmd
Normal file
44
world.qmd
Normal file
@ -0,0 +1,44 @@
|
||||
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
|
||||
<qgis version="3.32.2-Lima">
|
||||
<identifier></identifier>
|
||||
<parentidentifier></parentidentifier>
|
||||
<language></language>
|
||||
<type>dataset</type>
|
||||
<title></title>
|
||||
<abstract></abstract>
|
||||
<contact>
|
||||
<name></name>
|
||||
<organization></organization>
|
||||
<position></position>
|
||||
<voice></voice>
|
||||
<fax></fax>
|
||||
<email></email>
|
||||
<role></role>
|
||||
</contact>
|
||||
<links/>
|
||||
<dates/>
|
||||
<fees></fees>
|
||||
<encoding></encoding>
|
||||
<crs>
|
||||
<spatialrefsys nativeFormat="Wkt">
|
||||
<wkt></wkt>
|
||||
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
|
||||
<srsid>0</srsid>
|
||||
<srid>0</srid>
|
||||
<authid></authid>
|
||||
<description></description>
|
||||
<projectionacronym></projectionacronym>
|
||||
<ellipsoidacronym></ellipsoidacronym>
|
||||
<geographicflag>false</geographicflag>
|
||||
</spatialrefsys>
|
||||
</crs>
|
||||
<extent>
|
||||
<spatial maxx="0" maxy="0" maxz="0" miny="0" dimensions="2" minx="0" crs="" minz="0"/>
|
||||
<temporal>
|
||||
<period>
|
||||
<start></start>
|
||||
<end></end>
|
||||
</period>
|
||||
</temporal>
|
||||
</extent>
|
||||
</qgis>
|
Loading…
Reference in New Issue
Block a user