New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@terrestris/vectortiles

Package Overview
Dependencies
Maintainers
17
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@terrestris/vectortiles

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

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
17
Created
Source

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://demo.terrestris.de/democlient/index.html

how to use

Install the module e.g. by

npm i @terrestris/vectortiles

Then, in your code, import as follows:

import terrestrisVectorTiles from '@terrestris/vectortiles';

Then you can create the OSM-VectorTile layer by calling

const layer = new terrestrisVectorTiles();

or with custom configuration and style:

const layer = new terrestrisVectorTiles({
    declutter: false,
    usePlacesLabels: false,
    style_roads: [{
        ...
    }]
});

Keywords

vectortiles

FAQs

Package last updated on 20 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts