# odin-map

> Odin

Latest version **0.1.2** (published 2020-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install odin-map
pnpm add odin-map
yarn add odin-map
bun add odin-map
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2020-02-03 |
| First published | 2019-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 10.8 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | raphaelkielingtondin |

## Links

- npm: https://www.npmjs.com/package/odin-map
- npm.io page: https://npm.io/package/odin-map

## Dependencies (14)

- [ol](https://npm.io/package/ol.md) ^5.3.3
- [tslib](https://npm.io/package/tslib.md) ^1.10.0
- [webpack](https://npm.io/package/webpack.md) ^4.39.1
- [@types/ol](https://npm.io/package/@types/ol.md) ^5.3.4
- [node-sass](https://npm.io/package/node-sass.md) ^4.12.0
- [ts-loader](https://npm.io/package/ts-loader.md) ^6.0.4
- [css-loader](https://npm.io/package/css-loader.md) ^3.2.0
- [typescript](https://npm.io/package/typescript.md) ^3.5.3
- [@types/node](https://npm.io/package/@types/node.md) ^12.7.0
- [file-loader](https://npm.io/package/file-loader.md) ^4.2.0
- [sass-loader](https://npm.io/package/sass-loader.md) ^7.3.1
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.6
- [style-loader](https://npm.io/package/style-loader.md) ^1.0.0
- [ol-contextmenu](https://npm.io/package/ol-contextmenu.md) ^3.3.2

## Recent versions

- 0.1.2 (latest) — 2020-02-03
- 0.1.1 — 2020-01-29
- 0.1.0 — 2020-01-29
- 0.0.6 — 2020-01-28
- 0.0.5 — 2020-01-28
- 0.0.4 — 2020-01-28
- 0.0.3 — 2020-01-27
- 0.0.2 — 2019-08-15
- 0.0.1 — 2019-08-15

## README

<div align="center">
    <br>
    <img src="./docs/assets/logo2.svg" height="160">
    <h1>Odin</h1>
</div>

## Overview

It's a wrapper to [Open Layers 5v](https://openlayers.org). :earth_asia:

Minimal structure:

```js
const odin = new Odin();

odin.build();
```


Features:

- [ ] Map
  - [x] Custom `on` on OdinMap to custom events
  - [ ] Generate static map (canvas image)
  - [ ] Legends
  - [x] Add Interactions
  - [x] Add Controls
  - [x] Add Layers
  - [ ] Remove only one feature
- [x] Infobox
  - [ ] With custom offsets
  - [ ] Create a bind to features for follow when they move
- [x] Icons (Markers)
  - [ ] WebGL
  - [x] Legends
  - [ ] Reactives
  - [x] Image icon
  - [x] Custom args to use open layer options
- [x] Context menu (with condition)
- [x] Heatmap
  - [ ] With context
- [ ] Draw
  - [x] Add Lines
  - [x] Add Circle
  - [x] Add Point
  - [x] Edit
  - [ ] Remove one
  - [x] Disable interaction
- [x] EPSG Conversor
- [x] Build
  - [x] UMD (for browser global window)
  - [x] CJS (for browser import/export methods)

## Marker

- Icone
- Infobox
- Tooltip
- Legenda
- Menu de contexto

## Proximos passos

- Forma de remover overlay
- Adicionar controle de vértice de polígonos e círculos
- Abstração de layers (odin.layer.drawableCircle())
- Possibilidade de adicionar marker pela layer
- Contexto de marker (capítulo acima)
- Poder ler do localstorage/session que serão utilizados dentro do odin como configuração padrão (`readSession`)
- Menus de contexto serem disponibilizados pela api
- Verificar o uso do OdinFeature ja que nem sempre o objeto é odin (override na classe pai)

## Backlog

- Poder mander informações do marker pela api
- Cachear informações de um marker

```json
{
    "icon":"",
    "size": "",
    "offset":""
}
```

## References

SIG - Sistema de informação geográfica

EPSG - Sistema de Referência de Coordenadas

https://mariusschulz.com/blog/code-splitting-a-typescript-application-with-import-and-webpack

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