add

open fun add(layerID: String, layerHost: CustomLayerHost)
  • Performs additional setup for a layer after it has been added to the map, which may be necessary for some third-party mapping libraries.

Parameters

layer

Layer that was added to the map.

relativeTo

Identifier of an existing layer that the new layer was added relative to.


fun add(legendControl: LegendControl?)

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