@recogito/annotorious-map-annotation

0.3.2 • Public • Published

Annotorious Map Annotation

A helper plugin for using Annotorious with maps and geo-referenced images. After the plugin is installed, annotation shapes will use geographic coordinates (latitude, longitude) rather than image pixel coordinates.

This plugin currently works with Annotorious OpenSeadragon and WMTS maps only.

The plugin depends on:

Installing

npm install @recogito/annotorious-map-annotation

or

<script src="https://cdn.jsdelivr.net/npm/@recogito/annotorious-map-annotation@latest/dist/annotorious-map-annotation.js"></script>

Using

// OpenSeadragon viewer
var viewer = OpenSeadragon({
  id: "openseadragon",
  prefixUrl: "openseadragon/images/"
});

// OpenSeadragon WMTS plugin
var map = await OpenSeadragon.WMTS(viewer, {
  url: 'http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml'
});

// Initialize Annotorious
var anno = OpenSeadragon.Annotorious(viewer);

// Add the map annotation plugin
Annotorious.MapAnnotation(anno, map);

Dependencies (1)

Dev Dependencies (7)

Package Sidebar

Install

npm i @recogito/annotorious-map-annotation

Weekly Downloads

0

Version

0.3.2

License

BSD-3-Clause

Unpacked Size

43.2 kB

Total Files

15

Last publish

Collaborators

  • aboutgeo