website work

This commit is contained in:
Zsolt Ero
2024-01-11 16:49:46 +01:00
parent 7235fbbd31
commit 8d18554ec7
12 changed files with 424 additions and 97 deletions

28
website/map.html Normal file
View File

@@ -0,0 +1,28 @@
<div id="map"></div>
<script>
const map = new maplibregl.Map({
style: "https://tiles.openfreemap.org/styles/liberty",
center: [-74.5, 40],
zoom: 9,
container: "map",
});
let nav = new maplibregl.NavigationControl({showCompass:false});
map.addControl(nav, 'top-right');
let scale = new maplibregl.ScaleControl({
maxWidth: 80,
unit: 'imperial'
});
map.addControl(scale);
scale.setUnit('metric');
let marker = new maplibregl.Marker()
.setLngLat([30.5, 50.5])
.addTo(map);
</script>