add
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.
relative To
Identifier of an existing layer that the new layer was added relative to.
Installs the provided legend control, wiring it to map events and populating initial legends.