[Task] Implement OL Link instead of ol-hash for viewer URLs #109
Labels
component: frontend
effort: medium
type: maintenance
Underlying updates, upgrades, and general upkeep
Milestone
Describe the task
Currently, the location and zoom of the viewer page is pushed directly to the URL using the ol-hashed extension. Turns out, open layers has native capabilities for this using the Link. See example: https://openlayers.org/en/latest/examples/link.html?x=2508992.99979&y=943050.63366&z=5.10941&r=0&l=1
Completion criteria
Retain existing functionality, a URL can contain the x/y location and zoom of the viewer, but remove the ol-hashed library.
Additional context
Prefer built-in libraries instead of extensions. It looks like Link can also be used to retain layer presence, and this may be able to replace the existing layer opacity params. More likely, the Link layer param (
l
) will not be robust enough, in which case the layer param should be omitted.The text was updated successfully, but these errors were encountered: