removeLayer

fun removeLayer(id: String, isCompounLayer: Boolean = false)

Removes a layer by id, detaches consumers, and cleans encoded-grid sidecars when present.

Parameters

id

Layer id.

isCompounLayer

When removing a composite child, skips duplicate MapControllerEvents.LAYER_REMOVED emits.