[openstreetmap/openstreetmap-website] Custom layer filters (PR #5347)
Anton Khorev
notifications at github.com
Thu Nov 21 02:50:01 UTC 2024
Applies different filters in dark mode: invert+rotate for layers without hillshading, dim for layers with.
Doesn't implement any controls to changing the filter and, consequently, doesn't store selected values. For storing I'd start with deciding if #5339 is ok first.


You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5347
-- Commit Summary --
* Manage base layer switching in L.OSM.Map
* Set map layer data attribute when switching layers
* Add map layer data attributes to layer menu buttons
* Apply invert + hue-rotate filter to select layers
-- File Changes --
M app/assets/javascripts/leaflet.layers.js (9)
M app/assets/javascripts/leaflet.map.js (15)
M app/assets/stylesheets/common.scss (14)
M app/views/layouts/site.html.erb (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5347.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5347.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5347
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5347 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241120/f14afa98/attachment.htm>
More information about the rails-dev
mailing list