Skip to content

Mapbox Sources and Layers

Andy Rothwell edited this page Aug 4, 2020 · 1 revision

Mapbox Sources and layers

If using a mapbox map, you add sources, which include both source and layer objects.

Example:

  basemapSources: {
    pwd: {
      source: {
        tiles: [
          'https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityBasemap/MapServer/tile/{z}/{y}/{x}',
        ],
        type: 'raster',
        tileSize: 256,
      },
      layer: {
        id: 'pwd',
        type: 'raster',
      },
    }...
Clone this wiki locally