website work

This commit is contained in:
Zsolt Ero
2024-01-11 17:33:35 +01:00
parent 8d18554ec7
commit e37fc36ede
17 changed files with 345 additions and 215 deletions

19
website/map.js Normal file
View File

@@ -0,0 +1,19 @@
const map = new maplibregl.Map({
style: 'https://tiles.openfreemap.org/styles/liberty',
center: [-0.114, 51.506],
zoom: 14.2,
bearing: 55.2,
pitch: 60,
container: 'map',
boxZoom: false,
doubleClickZoom: false,
scrollZoom: false,
})
let nav = new maplibregl.NavigationControl({ showCompass: false })
map.addControl(nav, 'top-right')
let scale = new maplibregl.ScaleControl()
map.addControl(scale)
new maplibregl.Marker().setLngLat([-0.122, 51.503]).addTo(map)