feat: Center map and set zoom level
This commit is contained in:
parent
d66bb11695
commit
5fc91c2f4a
@ -10,7 +10,9 @@
|
|||||||
<script>
|
<script>
|
||||||
let map = new maplibregl.Map({
|
let map = new maplibregl.Map({
|
||||||
container: 'map',
|
container: 'map',
|
||||||
style: 'https://tiles.versatiles.org/assets/styles/colorful.json'
|
style: 'https://tiles.versatiles.org/assets/styles/colorful.json',
|
||||||
|
center: [10.49, 50.68],
|
||||||
|
zoom: 5
|
||||||
}).addControl(new maplibregl.NavigationControl());
|
}).addControl(new maplibregl.NavigationControl());
|
||||||
|
|
||||||
map.on('load', async () => {
|
map.on('load', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user