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