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

Fix request params #236

Merged
merged 8 commits into from
Feb 19, 2019
Merged

Fix request params #236

merged 8 commits into from
Feb 19, 2019

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Feb 14, 2019

See #219

In looking to document the supported request parameters, I found that x, y and zoom weren't working.
This fixes that and documents their usage on the README.
See https://github.com/will-moore/omero-iviewer/tree/fix_request_params#supported-urls

To test: e.g. go to http://web-dev-merge.openmicroscopy.org/webclient/img_detail/160953/?dataset=27801&zm=50&x=25000&y=15000 (user-3):

  • Check that e.g. ?x=200&y=500 centres the image at those coordinates
  • Check that e.g. ?zm=100 sets the zoom for Big images and non-tiled images. (for Big images it may pick the closest supported zoom level)

Re: Also found bug in opening iviewer from webclient: ome/openmicroscopy#5953

README.rst Outdated Show resolved Hide resolved
Copy link
Member

@manics manics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One (pre-existing) error in the bounds check.

The behaviour when using x/y outside the image bounds was unexpected, iviewer centres the image instead of clamping x/y to the image bounds. Worth documenting?

src/viewers/viewer/Viewer.js Outdated Show resolved Hide resolved
@jburel jburel merged commit 0ace682 into ome:master Feb 19, 2019
@jburel jburel added this to the 0.7.0 milestone Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants