There was an error while loading. Please reload this page.
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', }, }...