add

open fun add(layerID: String, layerHost: CustomLayerHost)

Hook for map SDK–specific registration of a custom layer host after MapsGL created the layer.

Parameters

layerID

Layer id.

layerHost

Mapbox CustomLayerHost implementation for that layer.


fun add(legendControl: LegendControl?)

Installs the provided legend control, wiring it to map events and populating initial legends.