Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.babelrc
.editorconfig
.eslintrc
.gitignore
.npmrc
LICENSE.md
README.md
package-lock.json
package.json
terrestris-vectortiles.png

README.md

terrestris vectortiles

A simple library that makes use of free available world-wide terrestris vectortiles in MapBox MVT format from OpenStreetMap data.

The main method getOSMLayer creates an openlayers VectorTile Layer, which you can use straight in your openlayers application.

example

demo

A simple demonstration application can be found here:

https://ows.terrestris.de/anwendungen.html#osm-vectortiles

how to use

Install the module e.g. by

npm i @terrestris/vectortiles

Then, in your code, import the main method:

import getOSMLayer from '@terrestris/vectortiles';

Then you can create the OSM-VectorTile layer by calling

getOSMLayer();

which returns the layer you can then add to your openlayers map.

You can’t perform that action at this time.