kitodo-production icon indicating copy to clipboard operation
kitodo-production copied to clipboard

Refactor detail map view, update OpenLayers and remember image zoom

Open thomaslow opened this issue 1 year ago • 1 comments

This pull request refactors the ol_custom.js Javascript code, updates its OpenLayers dependency from v5.2.0 to v6.14.1 and fixes #5796. New features include:

  • position, zoom and rotation of images are remembered when selecting new images
  • a new control button allows to scale the image to best fit the current available space
  • the OpenLayer constraints feature is enabled, such that the image can never be moved outside of the viewport
  • Integration tests of zoom in, zoom out, set north, rotate left, rotate right and zoom reset buttons

Tested with Firefox, Chrome and Android Tablet (touch gestures).

Demo:

https://github.com/user-attachments/assets/492e77e5-1f30-4751-9504-1482b9df35f7

thomaslow avatar Sep 27 '24 11:09 thomaslow

@thomaslow Please rebase against current master to avoid failing builds caused by broken Selenium tests!

solth avatar Oct 01 '24 05:10 solth

@thomaslow would you mind rebasing your branch one more time, as this PR is the next merge candidate?

solth avatar Nov 05 '24 09:11 solth