Skip to content

Commit

Permalink
Add OpenStreetMap attribution to Leaflet example (#991)
Browse files Browse the repository at this point in the history
* Add OpenStreetMap attribution to Leaflet example

* https

---------

Co-authored-by: Mike Bostock <[email protected]>
  • Loading branch information
elevenchars and mbostock committed Mar 6, 2024
1 parent 466092b commit bb55e0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/lib/leaflet.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ div.style = "height: 400px;";
const map = L.map(div)
.setView([51.505, -0.09], 13);

L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png")
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
})
.addTo(map);

L.marker([51.5, -0.09])
Expand Down

0 comments on commit bb55e0a

Please sign in to comment.