onRemove method
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);