leaflet-extras / leaflet-providers

An extension to Leaflet that contains configurations for various free tile providers.
https://leaflet-extras.github.io/leaflet-providers/preview/
BSD 2-Clause "Simplified" License
2.16k stars 673 forks source link

Automatic addition of OpenStreetMap attribution on the embedded map #377

Closed Dubs120 closed 3 years ago

Dubs120 commented 3 years ago

A lot of final users 'forget' to add the OpenStreetMap attribution on the embedded map, even if you provide the right one in the preview page (http://leaflet-extras.github.io/leaflet-providers/preview/index.html). Can you add a test to add automatically the right mention in case of use of OpenStreetMap tiles?

Right attribution is described on the wiki :

https://wiki.openstreetmap.org/wiki/Community_attribution_advice

Dubs120 commented 3 years ago

After some discussions, I close this issue, since it seems more suitable to be out as a feature request at leaflet main level. Discussions remain in progress in OSM community. If some dev read it and have an idea to implement a code to limit the omission of the OSM attribution.