omero-iviewer
omero-iviewer copied to clipboard
Preset Viewer Opening Parameters
Add extra parameters to the URL that opens iViewer: https://.../iviewer/?images=3407
It would be extremely useful to be able to open the viewer via a URL with extra parameters for:
- X and Y Coordinates - opens the viewer with the image centred around this point;
- Magnification - opens the viewer with the image at this magnification.
eg. https://.../iviewer/?images=3407&X=63012&Y=26852 https://.../iviewer/?images=3407&Mag=15 https://.../iviewer/?images=3407&X=63012&Y=26852&Mag=15
@c15mnw At one point in time, prior to opening multiple images for sure, the "X" and "Y" query params were supported as a given center. So was "ZM" for zoom (as a percentage).
Did you try out your first url example?
Ah ha! So I can centre the image by X and Y parameters! Thank you!
Can you point me to a URL where this is documented please?
Cheers MW
We are lacking documentation on iviewer. We will improve that now that it is becoming the viewer of choice.
Cheers Jmarie
In looking to improve the documentation, I found that the zm
and x and y
query parameters didn't seem to be working, so I've opened a PR to fix that (with the documentation additions): https://github.com/ome/omero-iviewer/pull/236
It would also be nice if there was a parameter to enable the display of ROIs when the image is opened.
Created card at https://trello.com/c/25be56hf/76-show-rois-on-initial-opening.