[openstreetmap/openstreetmap-website] Add copyright/attribution message to downloaded map images (PR #5607)
mmd
notifications at github.com
Sat Feb 15 15:53:09 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#5607)
It seems there's no need to support optional attribution. I'm going to close this PR and create another one for this webp one liner:
```
diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js
index e89608afd..fdad69498 100644
--- a/app/assets/javascripts/leaflet.share.js
+++ b/app/assets/javascripts/leaflet.share.js
@@ -159,6 +159,7 @@ L.OSM.share = function (options) {
.attr("class", "form-select w-auto")
.append($("<option>").val("png").text("PNG").prop("selected", true))
.append($("<option>").val("jpeg").text("JPEG"))
+ .append($("<option>").val("webp").text("WEBP"))
.append($("<option>").val("svg").text("SVG"))
.append($("<option>").val("pdf").text("PDF"))));
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5607#issuecomment-2660979843
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5607/c2660979843 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250215/1da2330e/attachment.htm>
More information about the rails-dev
mailing list