Skip to content

Commit bb55e0a

Browse files
Add OpenStreetMap attribution to Leaflet example (#991)
* Add OpenStreetMap attribution to Leaflet example * https --------- Co-authored-by: Mike Bostock <[email protected]>
1 parent 466092b commit bb55e0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/lib/leaflet.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ div.style = "height: 400px;";
2121
const map = L.map(div)
2222
.setView([51.505, -0.09], 13);
2323

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

2729
L.marker([51.5, -0.09])

0 commit comments

Comments
 (0)