removeControl method

MapboxMap removeControl(
  1. dynamic control
)

Removes the control from the map.

@param {IControl} control The {@link IControl} to remove. @returns {MapboxMap} this @example // Define a new navigation control. var navigation = new NavigationControl(); // Add zoom and rotation controls to the map. map.addControl(navigation); // Remove zoom and rotation controls from the map. map.removeControl(navigation);

Implementation

MapboxMap removeControl(dynamic control) =>
    MapboxMap.fromJsObject(jsObject.removeControl(control.jsObject));