addLayer

open fun addLayer(@NonNull layer: Layer)

Adds the layer to the map. The layer must be newly created and not added to the map before

Parameters

layer

the layer to add