Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

Persist map state in URL #208

Open m-mohr opened 3 years ago

m-mohr commented 3 years ago

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

christophfriedrich commented 3 years ago

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 commented 3 years ago

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

m-mohr commented 3 years ago

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