# @here/harp-vectortile-datasource

> HERE Vector Tile Data Source

Latest version **0.28.0** (published 2022-01-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @here/harp-vectortile-datasource
pnpm add @here/harp-vectortile-datasource
yarn add @here/harp-vectortile-datasource
bun add @here/harp-vectortile-datasource
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.28.0 |
| Published | 2022-01-17 |
| First published | 2020-08-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 345.1 KB |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1317 |
| Author | HERE Europe B.V. |
| Maintainers | here-bot, here-maps, heremaps |

## Links

- npm: https://www.npmjs.com/package/@here/harp-vectortile-datasource
- Repository: https://github.com/heremaps/harp.gl
- Homepage: https://github.com/heremaps/harp.gl#readme
- Issues: https://github.com/heremaps/harp.gl/issues
- npm.io page: https://npm.io/package/@here/harp-vectortile-datasource

## Dependencies (14)

- [long](https://npm.io/package/long.md) ^4.0.0
- [earcut](https://npm.io/package/earcut.md) ^2.2.2
- [protobufjs](https://npm.io/package/protobufjs.md) ^6.9.0
- [@here/harp-lines](https://npm.io/package/@here/harp-lines.md) ^0.28.0
- [@here/harp-utils](https://npm.io/package/@here/harp-utils.md) ^0.28.0
- [@here/harp-mapview](https://npm.io/package/@here/harp-mapview.md) ^0.28.0
- [@here/harp-geometry](https://npm.io/package/@here/harp-geometry.md) ^0.28.0
- [@here/harp-geoutils](https://npm.io/package/@here/harp-geoutils.md) ^0.28.0
- [@here/harp-lrucache](https://npm.io/package/@here/harp-lrucache.md) ^0.28.0
- [@here/harp-materials](https://npm.io/package/@here/harp-materials.md) ^0.28.0
- [@here/harp-text-canvas](https://npm.io/package/@here/harp-text-canvas.md) ^0.28.0
- [@here/harp-mapview-decoder](https://npm.io/package/@here/harp-mapview-decoder.md) ^0.28.0
- [@here/harp-transfer-manager](https://npm.io/package/@here/harp-transfer-manager.md) ^0.28.0
- [@here/harp-datasource-protocol](https://npm.io/package/@here/harp-datasource-protocol.md) ^0.28.0

## Recent versions

- 0.28.0 (latest) — 2022-01-17
- 0.27.1 — 2021-09-30
- 0.27.0 — 2021-09-27
- 0.26.0 — 2021-08-03
- 0.25.0 — 2021-05-25
- 0.24.0 — 2021-04-08
- 0.23.1 — 2021-03-16
- 0.22.1 — 2021-03-16
- 0.23.0 — 2021-03-09
- 0.22.0 — 2021-01-28
- 0.21.1 — 2020-11-03
- 0.21.0 — 2020-11-02
- 0.20.2 — 2020-09-29
- 0.20.1 — 2020-09-23
- 0.20.0 — 2020-09-22
- … 2 more at https://npm.io/package/@here/harp-vectortile-datasource/versions

## README

# @here/harp-vectortile-datasource

## Overview

This module provides the implementation of [HERE](https://www.here.com)'s
Optimized Map for Visualization (OMV) Datasource.

This format follows the [Vector Tile Specification](https://github.com/mapbox/vector-tile-spec/).
This JSON format contains geometries, such as points and lines that define polygons, labels,
such as road names or city names, and other kinds of data that are typically passed to a renderer to draw a map.

Each tile is encoded using [Protobuf](https://github.com/google/protobuf).

## REST Clients

### HERE Vector Tiles

REST service implemented with `APIFormat.HereV1` in `OmvRestClient.ts` if you want to use `AuthenticationTypeBearer` by default, if you want to use `APIKey` you can use `APIFormat.XYZOMV`.

You can find more about the different access methods [here](https://developer.here.com/documentation/authentication/dev_guide/index.html).

The HERE Vector Tile Service allows you to request tiles containing vector data
using content from the [HERE Open Location Platform](https://openlocation.here.com/).

HERE provides global coverage and updates the data continuously.
For more information about our map content, see the [HERE Map Content Guidelines](https://repo.platform.here.com/artifactory/open-location-platform-docs/Data_Specifications/HERE_Map_Content/).

### HERE XYZ

REST services implemented with `APIFormat.XYZMVT`, `APIFormat.XYZJson` and `APIFormat.XYZOMV` in `OmvRestClient.ts`.

The HERE XYZ Services offer three variants:

* MVT: offer [Open Street Map Data](https://www.openstreetmap.org) tiles in MVT Format.
* JSON: offer [Open Street Map Data](https://www.openstreetmap.org) tiles in JSON Format.
* OMV: offer HERE Data tiles in OMV Format. The data source is the same as in the [HERE Vector Tiles](#here-vector-tiles).

You can find more about the HERE XYZ Services [here](https://www.here.xyz/).

### Mapbox Vector Tiles

REST service implemented with `APIFormat.MapboxV7` in `OmvRestClient.ts`.

You can find more information [here](https://docs.mapbox.com/vector-tiles/reference/).

## Tom Tom Vector Tiles

You can find more information [here](https://developer.tomtom.com/maps-api/maps-api-documentation-vector/tile).

## Usage of REST APIs and authentication

It is not within the scope of `harp.gl` to provide credentials to all of the services implemented above, but following the links you can do it by yourself.
On our [Getting Started Guide](../../docs/GettingStartedGuide.md) there is more information about getting credentials for HERE Services.

---
_Source: https://npm.io/package/@here/harp-vectortile-datasource · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
