Links _key.yml_ to _layers.yml_ in the `MapLayers` module by putting a `hasKey` flag into the `LAYER_DEFINITIONS`. This removes the need for `LAYERS_WITH_MAP_KEY` as the key button can now directly check `layer.options.hasKey`. You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5918 -- Commit Summary -- * Put map key presence in js layer definitions -- File Changes -- M app/assets/javascripts/leaflet.key.js (2) M app/assets/javascripts/osm.js.erb (3) M lib/map_layers.rb (4) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5918.patch https://github.com/openstreetmap/openstreetmap-website/pull/5918.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5918 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev