-
Notifications
You must be signed in to change notification settings - Fork 9
Mapbox Sources and Layers
Andy Rothwell edited this page Aug 4, 2020
·
1 revision
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',
},
}...