This commit is contained in:
Zsolt Ero
2024-01-11 20:08:56 +01:00
parent e37fc36ede
commit 0af48cfac1
8 changed files with 400 additions and 279 deletions

View File

@@ -16,4 +16,13 @@ map.addControl(nav, 'top-right')
let scale = new maplibregl.ScaleControl()
map.addControl(scale)
new maplibregl.Marker().setLngLat([-0.122, 51.503]).addTo(map)
new maplibregl.Marker().setLngLat([-0.119, 51.507]).addTo(map)
function selectStyle(style) {
const styleUrl = 'https://tiles.openfreemap.org/styles/' + style
map.setStyle(styleUrl)
map.setPitch(0)
map.setBearing(0)
document.getElementById('style-url-code').innerText = styleUrl
}