add Style Custom Layer
open override fun addStyleCustomLayer(layerId: String, layerHost: CustomLayerHost, layerPosition: LayerPosition?): Expected<String, None>
Adds a new style custom layer.
Runtime style layers are valid until they are either removed or a new style is loaded.
Note: Custom layers are only valid on OpenGL rendering backend. Attempting to add a custom layer on Metal rendering backend results in undefined behavior.
Return
A string describing an error if the operation was not successful, or empty otherwise.
Parameters
layer Id
Style layer id.
layer Host
Style custom layer host.
layer Position
The position of the layer