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

2024-12-12 Thread mxdanger via rails-dev
I saw the website got an update but it unfortunately still uses the dimmed tiles as default with OS dark mode despite all of this discussion. Is @AntonKhorev still pushing for the dimmed tiles alone? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstre

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Marwin Hochfelsner via rails-dev
> leaflet-osm should be getting involved in automatic transforms - it should > have the ability to select a dark tile version where there is one Do you mean only the extension of `L.OSM.TransportMap` should be added to leaflet-osm? -- Reply to this email directly or view it on GitHub: https://

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > options = L.Util.setOptions(this, options); -L.TileLayer.prototype.initialize.call(this, options.url); +url = isDarkMap ? options.darkUrl : options.lightUrl; Well, if the provided layers can be expected always to be a light-mode-first choic

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Tom Hughes via rails-dev
> > inline styles are not allowed by our security policy in production > > The `style-src 'self' 'unsafe-inline'` in the CSP header tells me a different > story. OK so it is allowed for views with a map. I'm note sure why that is offhand but our goal is to not have it so we don't add new inline

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. I don't think leaflet-osm should be getting involved in automatic transforms - it should have the ability to select a dark tile version where there is one and any automatic transformations should only be in the osm.org code. > options = L.

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. a596f959d00a0bbde1c51fdf8fb0e9ffdc4c6787 Get the layer container the right way -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5396/files/47e252da26fca0292a91160c3e0f54accab8b272..a596f959d00a0bbde1c51fdf8fb0e9ffdc4c6787 You are receivin

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Marwin Hochfelsner via rails-dev
I wrote it's a leaner variant of #4777, not that I fixed its flaws. > Changes to anything under `vendor` need to be done in the appropriate > upstream repository, not here. That's why I left https://github.com/openstreetmap/leaflet-osm/issues/42 open. > inline styles are not allowed by our secu

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Tom Hughes via rails-dev
Also inline styles are not allowed by our security policy in production so any dynamic changes need to be done by adding or removing classes to trigger static style rules in the main stylesheet. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap

Re: [openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Tom Hughes via rails-dev
Changes to anything under `vendor` need to be done in the appropriate upstream repository, not here. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5396#issuecomment-2539848666 You are receiving this because you are subscribed to

[openstreetmap/openstreetmap-website] Use map tiles dark mode with leaflet-osm plugin (PR #5396)

2024-12-12 Thread Marwin Hochfelsner via rails-dev
This lean and updated variant of #4777 follows the rules laid out in #5328 that were implemented in #5362. Since the editing of the user preference happens on a different view/site, there is no need to listen to color scheme changes on the fly and the whole logic can happen in the initialization

Re: [openstreetmap/openstreetmap-website] iD: listen to URL hash changes (PR #5394)

2024-12-12 Thread Martin Raifer via rails-dev
> using openstreetmap.org/id directly is not really supported :+1: agree -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5394#issuecomment-2539710967 You are receiving this because you are subscribed to this thread. Message ID:

Re: [openstreetmap/openstreetmap-website] iD: listen to URL hash changes (PR #5394)

2024-12-12 Thread Tom Hughes via rails-dev
Looks good to me, though I would not that using openstreetmap.org/id directly is not really supported - it's an internal implementation detail that we certainly don't guarantee. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/539

Re: [openstreetmap/openstreetmap-website] iD: listen to URL hash changes (PR #5394)

2024-12-12 Thread Tom Hughes via rails-dev
Merged #5394 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5394#event-15638863621 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

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

2024-12-12 Thread Oscar McNoe via rails-dev
Why not expand the options in the preferences to: * Auto _(same behaviour as suggested by @gravitystorm )_ * Light * Dark (if available) _(this option would revert back to Light mode tiles if unavailable)_ * Dark (filter) _(this option will enable the current CSS tile filter against Light mode ti

Re: [openstreetmap/openstreetmap-website] Add light/dark mode preference (Issue #5324)

2024-12-12 Thread Nekzuris via rails-dev
Apparently this was decided [here](https://github.com/openstreetmap/openstreetmap-website/pull/5337#issuecomment-2504202626) but I don't understand this choice @gravitystorm. Even for registered users it's bad because they can't set dark on desktop and light on mobile for example. -- Reply to

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

2024-12-12 Thread Anton Khorev via rails-dev
> > The next question is why? > > I think I've answered this multiple times already. The cartographers should > be in charge of what should be shown for their maps in each desired mode. We > should not apply any filters unless the cartographers have asked for them. > That's "why". But you also

Re: [openstreetmap/openstreetmap-website] Add light/dark mode preference (Issue #5324)

2024-12-12 Thread Jay Turner via rails-dev
I have to agree with @Nekzuris - accessibility should be available for all users, not just registered users. Should the preference be stored as a browser cookie? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5324#issuecomment

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

2024-12-12 Thread Andy Allan via rails-dev
> The next question is why? I think I've answered this multiple times already. The cartographers should be in charge of what should be shown for their maps in each desired mode. We should not apply any filters unless the cartographers have asked for them. That's "why". > But of course the nega

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

2024-12-12 Thread Anton Khorev via rails-dev
@gravitystorm That's the "yes" answer. The next question is why? You can see (2nd table) that the only difference right now is that with your preferred defaults your dark transport map is shown while with light map defaults it's not shown. That's one thing in favor of your defaults. But of cour

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

2024-12-12 Thread Andy Allan via rails-dev
> @gravitystorm Are you against setting map mode to light by default for now? I'm not quite sure what you mean here. I'm against changing any default preferences (they should remain `auto` by default), if that's what you are asking. Here's two tables that might help. The first shows how the "de

Re: [openstreetmap/openstreetmap-website] Proposal for adding support for map notes tags (Issue #5294)

2024-12-12 Thread Anton Khorev via rails-dev
Comment asking for editable tags: https://github.com/openstreetmap/openstreetmap-website/issues/3932#issuecomment-1746911041 -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5294#issuecomment-2539043342 You are receiving this bec

Re: [openstreetmap/openstreetmap-website] Proposal for adding support for map notes tags (Issue #5294)

2024-12-12 Thread Anton Khorev via rails-dev
I thought about this again and versioned notes may be what we actually want. We already kind of have note versions, they only contain state changes (open -> closed -> open again). But with tags we might want to record tag changes too. Being able to change tags allows to use them for more than ju

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

2024-12-12 Thread Anton Khorev via rails-dev
@gravitystorm Are you against setting map mode to light by default for now? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5328#issuecomment-2538555650 You are receiving this because you are subscribed to this thread. Message I

Re: [openstreetmap/openstreetmap-website] Use transport-dark tiles for Transport map in dark mode (Issue #5395)

2024-12-12 Thread Andy Allan via rails-dev
> Should the OpenCycleMap layer stay dimmed with reduced contrast as it > currently is or should another filter (if any) be chosen to optimize the map > for dark mode? I'd prefer to see the OpenCycleMap layer displayed normally in dark mode (i.e. with no filter) for now. I think either we will

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

2024-12-12 Thread Andy Allan via rails-dev
> So we're moving from _let's have the map dark in some unspecified manner_ to > _let's have the map not dark but still call it dark_ (by default when the > browser reports dark color scheme preference). That's probably not what you > want. I want to see all filters removed from all map layers,