addLayer

fun addLayer(layer: MTLayer)

Adds a layer to the map.

Parameters

layer

Layer to be added.

Throws

if layer with the same id is already added to the map.