Skip to content

Commit

Permalink
attrib styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Jan 19, 2024
1 parent 7dfd99c commit 0e752d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/assets/map_howto.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function initMap() {
boxZoom: false,
doubleClickZoom: false,
scrollZoom: false,
attributionControl: false,
})
window.map = map

Expand All @@ -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)
}

Expand Down

0 comments on commit 0e752d6

Please sign in to comment.