setup

fun setup(mapControllerProvider: () -> LegendControl.Host?)

Sets up the view by providing a Host. The Host is an interface that the map controller or another data provider implements to supply legend data.

Parameters

mapControllerProvider

A lambda function that returns an instance of LegendControl.Host. This is the source from which the control will get its data.