Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist map state in URL #208

Open
m-mohr opened this issue Oct 20, 2021 · 3 comments
Open

Persist map state in URL #208

m-mohr opened this issue Oct 20, 2021 · 3 comments
Labels
enhancement New feature or request viewer
Milestone

Comments

@m-mohr
Copy link
Member

m-mohr commented Oct 20, 2021

Originates from a discussion on Teams regarding the ESA_WORLDCOVER_10M_2020_V1 product:

It would be nice if you could share a web editor link with the current state of the map (e.g. loaded preview-collection, AOI, ...).
For OL persistence see here: https://openlayers.org/en/latest/examples/permalink.html#map=2.87/0.00/0.00/0

@m-mohr m-mohr added the enhancement New feature or request label Oct 20, 2021
@m-mohr m-mohr modified the milestone: v0.10.0 Oct 20, 2021
@christophfriedrich
Copy link
Collaborator

The title sounds like you want the URL bar to update after each state-changing UI interaction. The text sounds like you want a "Share" button that produces a permalink on demand. Which variant did you have in mind? The first one is a lot more work, bloats the URL history of the tab and users would expect to be able to use the Back/Forward buttons.

@m-mohr
Copy link
Member Author

m-mohr commented Oct 20, 2021

One of them - not sure yet. Indeed, the Share button would likely be easier to do.

@m-mohr m-mohr added the viewer label Oct 20, 2021
@m-mohr
Copy link
Member Author

m-mohr commented Oct 20, 2021

The second option would probably override the history state and not push new entries for every change. :-)

@m-mohr m-mohr added this to the future milestone Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request viewer
Projects
None yet
Development

No branches or pull requests

2 participants