Mapilion - Vector and Raster Map Tiles

FREEMIUM
Par Robin | Mise à jour il y a un an | Mapping
Popularité

8.8 / 10

Latence

156ms

Niveau de service

100%

Retour à tous les tutoriels (2)

Use Vector Tiles with Maplibre-GL

Vector tiles can be consumed with most vector tile map libraries that support the Mapbox Vector Tile standard.

We provide a few pre-configured styles for you that allow you to start easily. These can be consumed by Mapbox-GL, Maplibre-GL, and other Vector Tile libraries like VTM.

Here is an example using the Maplibre-GL-JS library:

import { Map } from 'https://cdn.skypack.dev/maplibre-gl'

const rapidAPIKey = "[YOUR_RAPID_API_KEY]"

const map = new Map({
  container: "map",
  style: `https://mapilion-vector-and-raster-map-tiles.p.rapidapi.com/rapid-api/stylejson/osm-bright?rapidapi-key=${rapidAPIKey}`,
  center: [1, 45],
  zoom: 3
})
Note : 5 - Votes : 1