emigre / openseadragon-annotations

Draw annotations over deep zoom images
BSD 3-Clause "New" or "Revised" License
97 stars 39 forks source link

OpenSeadragon.Annotations is not a constructor: Initialization Error #16

Closed imoutsatsos closed 7 years ago

imoutsatsos commented 7 years ago

Trying to initialize the annotation plugin as described in the current documentation, using const annotations = new OpenSeadragon.Annotations({ viewer }); generates an error image

image

However, when I use viewer.initializeAnnotations(); as in previous versions of the documentation, the plugin loads and initializes without an error.

emigre commented 7 years ago

Hi @imoutsatsos

I'm in the middle of implementing a number of changes to the plugin to release a new version. For this reason, the readme in the develop branch refers to what will be the next version. Here you can see the readme for the latest published version, which is the one that is also available in the npm package.

Please, follow those instructions to use the plugin. I should try to create a separate documentation that can be consulted independently of the readme on github, so it can serve as reference for the latest published version, but I have not had the time to do it. Contributions welcomed! : )