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 fetchTileFunction callback in the options and call setStyleCustomGeometrySourceTileData()

Parameters

options

The `custom geometry source options` for the custom geometry.

sourceId

A style source identifier