Skip to content

Basic working tile-coordinates grid shown over the image#503

Draft
will-moore wants to merge 1 commit intoome:masterfrom
will-moore:tile_coords
Draft

Basic working tile-coordinates grid shown over the image#503
will-moore wants to merge 1 commit intoome:masterfrom
will-moore:tile_coords

Conversation

@will-moore
Copy link
Copy Markdown
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
Copy Markdown

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.

@will-moore will-moore changed the title Basic working tile-coordinates shown over the image Basic working tile-coordinates grid shown over the image Oct 8, 2025
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