geojupyter / jupytergis

JupyterGIS
https://geojupyter.github.io/jupytergis/lab/index.html
BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

Save position/zoom explicitly #47

Open davidbrochart opened 2 months ago

davidbrochart commented 2 months ago

Currently, every time a user pans or zooms the map, the new position and zoom are set into the shared model and eventually saved to file, but the UI doesn't react to these changes. It seems that this kind of information is rather related to the view, and each user has their own view of the map. But I agree that it can be useful to have it saved in the model too, so that it can be restored when the map is opened later. Maybe a trade-off would be for the user to explicitly ask for it to be saved, with a button like "Save position/zoom"?

brichet commented 2 weeks ago

We discussed this with @martinRenou, and here are some ideas: