[openstreetmap/openstreetmap-website] Add default browse icons for nodes, ways, relations (PR #5353)

2024-11-23 Thread Anton Khorev via rails-dev
Add icons for elements that don't have any icon defined by their tags. ![image](https://github.com/user-attachments/assets/fcee8f42-668b-4f15-a7cf-ca44ecf6f6b5) ![image](https://github.com/user-attachments/assets/19ca136d-5842-4b77-9405-d615d743c4f5) Those are the standard node/way/relation ico

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

2024-11-23 Thread Anton Khorev via rails-dev
Currently map layer API keys have one extra level of indirection: - keys are defined in the settings - `osm.js.erb` reads them from the settings and writes them to `OSM.THUNDERFOREST_KEY` and `OSM.TRACESTRACK_KEY` - `layers.yml` contain names of `OSM` properties to check for keys Instead of this

Re: [openstreetmap/openstreetmap-website] Custom layer filters (PR #5347)

2024-11-23 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 5 commits. e1589e1bbe9303448992a0c76e5544063bf9814d Manage base layer switching in L.OSM.Map 64debe60a11e2917d6ce7278ddf208490e78cc2e Define custom dark filters for map layers 91820985d558fa26e624d17c95a00adf11cc3fc8 Read dark mode filter from custom css property eaa8ed82

Re: [openstreetmap/openstreetmap-website] Dark Mode for maps (Issue #5328)

2024-11-23 Thread Marwin Hochfelsner via rails-dev
I made a little utility to try out filter combinations more easily: https://codepen.io/hlfan/full/GRVVGog For convenient editing in the dev tools, the outputted filter is stored in a custom property and the filter is also applied to the SVG that holds the filters. My first insight from using it:

Re: [openstreetmap/openstreetmap-website] Dark Mode for maps (Issue #5328)

2024-11-23 Thread Nekzuris via rails-dev
On a grayscale, the default OSM light theme is actually 19% dark, whereas a typical light page with black text is around 3%. The dark theme you showed is 90% dark. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5328#issuecommen

Re: [openstreetmap/openstreetmap-website] Dark Mode for maps (Issue #5328)

2024-11-23 Thread pkrasicki via rails-dev
>The main issue I see is that your proposal adds a 'theme' to a layer. It adds a theme to the whole map. The user can turn it on or off, but they have no control over specific layers. >A 'dark mode' (as this issue calls it) is from a user perspective a layer. No, this is what I'm proposing: ![