removeCircle method

Future<void> removeCircle(
  1. Circle circle
)

Removes the specified circle from the map. The circle must be a current member of the circles set.

Change listeners are notified once the circle has been removed on the platform side.

The returned Future completes once listeners have been notified.

Implementation

Future<void> removeCircle(Circle circle) async {
  assert(_circles[circle.id] == circle);

  await _mapboxGlPlatform.removeCircle(circle.id);
  _circles.remove(circle.id);

  notifyListeners();
}