This guide explains how to use Annotorious together with OpenSeadragon
to annotate high-resolution zoomable images.
Quick Start
Here’s a basic example to get you started. The code below creates an OpenSeadragon viewer,
initializes Annotorious on the viewer, attaches an event listener, and loads
annotations from a file.
Step-by-Step Guide
In your JavaScript file, import OpenSeadragon from the openseadragon package, and createOSDAnnotator
from the Annotorious OpenSeadragon plugin package.
Load existing annotations. Read more about the data model on the next page.
Note that annotation coordinates are relative to the base resolution of the image.
Script Import
If you are not using a build system, you can include Annotorious via CDN.
The createOSDAnnotator function is available under the global AnnotoriousOSD object.