removeLayer

fun removeLayer(layer: MTLayer)

Removes a layer from the map.

Parameters

layer

Layer to be removed.

Throws

if layer does not exist on the map.