onRemove method

dynamic onRemove(
  1. MapboxMap map
)

Unregister a control on the map and give it a chance to detach event listeners and resources. This method is called by {@link MapboxMap#removeControl} internally.

Implementation

onRemove(MapboxMap map) => jsObject.onRemove(map.jsObject);