mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
attrib styling
This commit is contained in:
@@ -11,6 +11,7 @@ function initMap() {
|
||||
boxZoom: false,
|
||||
doubleClickZoom: false,
|
||||
scrollZoom: false,
|
||||
attributionControl: false,
|
||||
})
|
||||
window.map = map
|
||||
|
||||
@@ -24,6 +25,11 @@ function initMap() {
|
||||
let scale = new maplibregl.ScaleControl()
|
||||
map.addControl(scale)
|
||||
|
||||
let attrib = new maplibregl.AttributionControl({
|
||||
compact: false,
|
||||
})
|
||||
map.addControl(attrib)
|
||||
|
||||
new maplibregl.Marker().setLngLat([-0.119, 51.507]).addTo(map)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user