addStyleCustomRasterSource

Note! This is an experimental feature. It can be changed or removed in future versions.

Adds a custom raster source to be used in the style. To add the data, implement the fetchTileFunction callback in the options and call setStyleCustomRasterSourceTileData()

Parameters

sourceId

A style source identifier

options

The custom raster source options for the custom raster source.