gis-ops / valhalla-app

This is the demo web app running on https://valhalla.openstreetmap.de
https://valhalla.openstreetmap.de
MIT License
157 stars 87 forks source link

Remember map extent #50 [Added functionality] #120

Closed harsh5902 closed 1 year ago

harsh5902 commented 1 year ago

Closes #50

🛠️ Fixes Issue

used localstorage of the user to remember the mapextent

👨‍💻 Changes proposed

If user moves his/her pointer on the map and moves to new location then localstorage will store his session and next time when he/she starts the app will get the same location where they left before.

You can see the center latitude and longitude on the developer tools application tab

📷 Screenshots

image

harsh5902 commented 1 year ago

Sure I will make the necessary changes as needed

harsh5902 commented 1 year ago

@nilsnolde I have made the necessary changes you pointed out and also used localstorage for zoom level as well

image

nilsnolde commented 1 year ago

LGTM, thanks!