# leaflet-webatlastile

> Leaflet plugin to use Webatlas tilecache with correct attribution and apikey's. Requires only vanilla Leaflet.

Latest version **2.1.1** (published 2021-10-01) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install leaflet-webatlastile
pnpm add leaflet-webatlastile
yarn add leaflet-webatlastile
bun add leaflet-webatlastile
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2021-10-01 |
| First published | 2016-03-16 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 41.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Norkart AS |
| Maintainers | atlefren, nk_build, norkart_user, robpvn |
| Keywords | maps, leaflet, client, tiles, norway |

## Links

- npm: https://www.npmjs.com/package/leaflet-webatlastile
- Repository: https://github.com/Norkart/L.TileLayer.Webatlas
- Issues: https://github.com/Norkart/L.TileLayer.Webatlas/issues
- npm.io page: https://npm.io/package/leaflet-webatlastile

## Dependencies (1)

- [leaflet](https://npm.io/package/leaflet.md) ^1.7.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 2.1.1 (latest) — 2021-10-01
- 2.1.0 — 2021-07-30
- 2.0.2 — 2021-07-28
- 2.0.1 — 2021-07-28
- 2.0.0 — 2021-07-28
- 1.2.0 — 2020-10-20
- 1.1.1 — 2017-01-24
- 1.1.0 — 2017-01-24
- 1.0.1 — 2016-06-02
- 1.0.0 — 2016-04-06
- 0.1.0 — 2016-03-16
- 0.0.8 — 2016-03-16

## README

# L.TileLayer.Webatlas

Leaflet plugin to use Webatlas tilecache with correct attribution and API keys. Requires only vanilla Leaflet.

## Usage

1. Install the package

   npm i leaflet-webatlastile

2. Import what you need:

   import {webatlasTileLayer} from 'leaflet-webatlastile';

3. Instantiate a new layer the same way a L.TileLayer from Leaflet is instantiated, just remember the API token:

   webatlasTileLayer({apiKey: 'my-api-key'}).addTo(map);

To specify another layer:

    webatlasTileLayer({apiKey: 'my-api-key', mapType: WebatlasTileLayerTypes.GREY}).addTo(map);

See demo/index.ts for example use.

## Obtaining an API Token

See <developer.norkart.no> for obtaining a trial token.

## Options

- `mapType`: one of WebatlasTileLayerTypes (Default: WebatlasTileLayerTypes.VECTOR)
- `apiKey`: a Webatlas API Token
- `attributionPosition`: Position of the attribution text. Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'. Default: 'bottomright'.

## Development

1. Install dependencies: `npm install`
2. Run `npm run start` to start a dev server, and edit files in the `/demo` folder
3. Run tests with `npm test`

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