osmcha-frontend
osmcha-frontend copied to clipboard
Add the current map position to the URL
When I share larger changesets, I want to share the position that I zoomed to with others. Right now that is not possible because the URL does not hold the map position.
It might be possible to use the hash features https://maplibre.org/maplibre-gl-js/docs/API/classes/Hash/ to some of the views. It will likely not work for all because it tends to interfere with other custom params that an applications manages in the URL. In this case, you could update and read from the URL manually … however I recommend to postpone this until the frontend technology was updated and something like https://nuqs.47ng.com/ can be used.
But maybe a quick win is possible here with the native hash param for some views.