Skip to content

Mapbox @giro3d/piero ​

Add support for Mapbox tilesets.

Usage with createPieroApp ​

js
import { loaders } from '@giro3d/piero/modules';

createPieroApp({
    ...
    modules: [
        loaders.Mapbox
        ...
    ]
})

Usage ​

This module provides the mapbox dataset type for accessing various Mapbox tilesets, configured as such:

json
{
    "type": "mapbox",
    "tileset": "mapbox.satellite",
    "token": "your-mapbox-access-token",
    "name": "Mapbox Satellite"
}

Available tilesets:

  • mapbox.mapbox-terrain-dem-v1 - Terrain elevation (PNG raw format)
  • mapbox.terrain-rgb - Terrain RGB (PNG raw format)
  • mapbox.satellite - Satellite imagery (JPEG format)

NOTE

A valid Mapbox access token is required to use this module.