[openstreetmap/openstreetmap-website] Collect map layer credits into a data structure (PR #5348)

Anton Khorev notifications at github.com
Thu Nov 21 17:21:53 UTC 2024


Can we have a proper map layer configuration that can be edited without going into javascript and altering bits across different files? I started doing this, here's a subtask of making a configuration for layer credits. It removes a bunch of interdependent variables like `var cyclosm_link`, `var osm_france_link`, `var cyclosm` etc.

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5348

-- Commit Summary --

  * Collect map layer credits into a data structure

-- File Changes --

    M app/assets/javascripts/leaflet.map.js (157)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5348.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5348.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5348
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5348 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241121/390c0296/attachment-0001.htm>


More information about the rails-dev mailing list