DigitalSlideArchive / HistomicsUI

A Girder plugin for pathology image annotations and analysis.
Apache License 2.0
57 stars 20 forks source link

Allow annotations to be viewed with OpenSeadragon #129

Open dgutman opened 2 years ago

dgutman commented 2 years ago

Currently we can view annotations only using the GeoJS plugin. I'd like to also allow openseadragon to be the base tileviewer with a GeoJS layer superimposed/bound. Basically looks like we need to add a div for GeoJS to live in, and then make sure we bind the OSD zoom/pan events with the GeoJS layer.

I've done this before in other apps... some code snippets here:

https://github.com/dgutman/webix_image_organizer/blob/70e406186d534219afc8cb870bd0291ea8d9aba8/sources/views/subviews/gallery/windows/imageWindow/imageTemplateEventService.js

And probably a bit easier to follow in here:

https://github.com/dgutman/dsa_tcga_webix_app/blob/8f383d7aba257b9b78adc8b7077eebd7037d8009/DSAForDeploying/sources/views/imageTemplate.js

https://github.com/dgutman/dsa_tcga_webix_app/blob/8f383d7aba257b9b78adc8b7077eebd7037d8009/DSAForDeploying/sources/styles/app.css

cooperlab commented 2 years ago

This is probably easier than fixing the GEO js viewer.