Mapilion - Vector and Raster Map Tiles

FREEMIUM
Por Robin | Atualizado 4 дня назад | Mapping
Popularidade

9 / 10

Latência

144ms

Nível de serviço

100%

Health Check

N/A

Voltar para todos os tutoriais (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
})