[openstreetmap/openstreetmap-website] Automatic deselecting "Map Notes" when changing to/from Edit Mode is annoying (#1212)
Aidan Epstein
notifications at github.com
Mon Jun 21 20:15:11 UTC 2021
I have the same issue with not preserving the layer that I pick. This appears to be due to constructing a URL fragment (https://www.openstreetmap.org/#map=19/XX/YY) for the current editor view that doesn't include the previous layers (https://www.openstreetmap.org/#map=19/XX/YY&layers=YN). I've never worked on the code for this project, and I don't do much web development, but it seems like there are two ways to fix this:
1. Add the layer info to the generated URL, but I'm not sure where this is stored, or how one would get it
2. Don't reset the layer when getting a URL fragment without layer parameter, perhaps only doing it when receiving an empty layer parameter (https://www.openstreetmap.org/#map=19/XX/YY&layers=)
I'm not sure which would be a better solution, though
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1212#issuecomment-865315341
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210621/d276b4b3/attachment.htm>
More information about the rails-dev
mailing list