# @recogito/annotorious-map-annotation

> An Annotorious plugin for annotating maps

Latest version **0.3.2** (published 2022-07-19) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @recogito/annotorious-map-annotation
pnpm add @recogito/annotorious-map-annotation
yarn add @recogito/annotorious-map-annotation
bun add @recogito/annotorious-map-annotation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2022-07-19 |
| First published | 2021-10-22 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 42.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rainer Simon |
| Maintainers | aboutgeo |
| Keywords | Annotation, Maps, WMTS, OpenSeadragon, Map Annotation |

## Links

- npm: https://www.npmjs.com/package/@recogito/annotorious-map-annotation
- Repository: https://github.com/recogito/annotorious-map-annotation
- Homepage: https://github.com/recogito/annotorious-map-annotation#readme
- Issues: https://github.com/recogito/annotorious-map-annotation/issues
- npm.io page: https://npm.io/package/@recogito/annotorious-map-annotation

## Dependencies (1)

- [tiny-emitter](https://npm.io/package/tiny-emitter.md) ^2.1.0

## Recent versions

- 0.3.2 (latest) — 2022-07-19
- 0.3.1 — 2022-03-26
- 0.3.0 — 2022-01-27
- 0.2.2 — 2021-11-19
- 0.2.1 — 2021-10-25
- 0.2.0 — 2021-10-25
- 0.1.2 — 2021-10-25
- 0.1.1 — 2021-10-22
- 0.1.0 — 2021-10-22

## README

# 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](https://github.com/recogito/annotorious-openseadragon)
and WMTS maps __only__.

The plugin depends on:
- [OpenSeadragon](https://openseadragon.github.io/)
- [Annotorious OpenSeadragon](https://github.com/recogito/annotorious-openseadragon)
- [OpenSeadragon WTMS plugin](https://github.com/recogito/openseadragon-wmts)

## Installing
`npm install @recogito/annotorious-map-annotation`

or 

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

## Using

```js
// 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);
```

---
_Source: https://npm.io/package/@recogito/annotorious-map-annotation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
