[openstreetmap/openstreetmap-website] Put api keys directly in js layer definitions (PR #5809)

Marwin Hochfelsner notifications at github.com
Sun Mar 16 02:11:28 UTC 2025


### Description
This PR expands on and closes #5352, building onto the `MapLayers` library and also reusing the keys for the embed layer selection (`leafletOsmId` instead of `layer`).

### How has this been tested?
Only the difference to #5352

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

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

-- Commit Summary --

  * Put api keys directly in js layer definitions

-- File Changes --

    M app/assets/javascripts/embed.js.erb (28)
    M app/assets/javascripts/leaflet.map.js (4)
    M app/assets/javascripts/osm.js.erb (4)
    M config/layers.yml (6)
    A lib/map_layers.rb (19)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5809 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250315/576fe5b2/attachment.htm>


More information about the rails-dev mailing list