setup
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
map Controller Provider
A lambda function that returns an instance of LegendControl.Host. This is the source from which the control will get its data.