addStyleCustomGeometrySource

open fun addStyleCustomGeometrySource(sourceId: String, options: CustomGeometrySourceOptions): Expected<String, None>

Adds a custom geometry to be used in the style. To add the data, implement the CustomGeometrySourceOptions.Builder.fetchTile@CallSuper @MainThread open function callback in the options and call setStyleCustomGeometrySourceTileData

Parameters

sourceId

A style source identifier

options

The CustomGeometrySourceOptions for the custom geometry.