Skip to content

Handling multiple images annotations with unique context #497

Discussion options

You must be logged in to vote

Yes, that's right. Changing the tilesource doesn't affect the annotations. (It might not actually be desirable - see e.g. use case of multiple wavelength photograph layers for the same object.) So you'd have to manage the switch yourself. Either by keeping track of the annotations via events, as you say - or by simply leaving it up to Annotorious + calling .getAnnotations/clearAnnotations before changing the image, and then setAnnotations with the annotations for the next image after you changed the image.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AndrzejMachnikDacDigital
Comment options

@rsimon
Comment options

@AndrzejMachnikDacDigital
Comment options

@rsimon
Comment options

Answer selected by AndrzejMachnikDacDigital
@AndrzejMachnikDacDigital
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants