remove

fun remove()

Detach the marker from its MapView, clear its listeners and lock it.

Idempotent: calling remove more than once is a no-op. After remove returns, isRemoved is true, every property setter silently no-ops, and both the change and click listener lists are empty.

Equivalent to mapView.removeMarker(marker) followed by clearing listeners, but you can call it without holding a reference to the MapView.