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

Basic working tile-coordinates shown over the image #503

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

will-moore
Copy link
Member

Investigating the display of tile coordinates as a possible tool for users to keep track of which parts of a big Image they are viewing (or have viewed before).

Functionality is similar to https://openlayers.org/en/latest/examples/canvas-tiles.html but I couldn't get that code to work since it complained about 'no projection' when I added a Debug layer in iviewer.
So instead, similar effect was produced with a custom tileLoadFunction in a subclass of the OmeroImage layer (should use same tile coordinates etc).

I was also trying to keep track of the tiles where tileLoadFunction() has been called before, so that when we render a tile, we can show if it's been loaded before count: 1 etc in the screenshot. However, it seems to not get called more than once for each tile.

Screenshot 2025-02-26 at 14 15 01

@will-moore will-moore marked this pull request as draft February 26, 2025 14:25
@dinoflagelado
Copy link

a good start, that is how I imagine it would look like. The user has to have the capability to design the tile structure (how many rows and columns per tile), as the contents of slides can be very different.

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.

2 participants