add
Hook for map SDK–specific registration of a custom layer host after MapsGL created the layer.
Parameters
layer ID
Layer id.
layer Host
Mapbox CustomLayerHost implementation for that layer.
Installs the provided legend control, wiring it to map events and populating initial legends.