simonw / download-tiles

Download map tiles and store them in an MBTiles database
https://datasette.io/tools/download-tiles
Apache License 2.0
29 stars 6 forks source link

--attribution=osm shortcut #4

Closed simonw closed 3 years ago

simonw commented 3 years ago

If you use a different --tiles-url but it's ultimately sourced from OpenStreetMap having to type --attribution="© OpenStreetMap contributors" is a bit of a pain, especially since you need to type that ©. Instead, support --attribution=osm as a shortcut for that value.

(If anyone ever wants to explicitly set "osm" as the attribution they'll have to do so by running sqlite3 tiles.db "update metadata set value = 'osm' where name = 'attribution';" manually instead.)