OldInsuranceMaps icon indicating copy to clipboard operation
OldInsuranceMaps copied to clipboard

[Task] Implement OL Link instead of ol-hash for viewer URLs

Open mradamcox opened this issue 2 years ago • 0 comments

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.

mradamcox avatar Jan 19 '23 20:01 mradamcox