removeMarkers method

Future<void> removeMarkers(
  1. List<Marker> markers
)

Remove markers from the map view.

Throws MarkerNotFoundException if the markers list contains one or more markers that have not been added to the map view via addMarkers or contains markers that have already been removed from the map view.

Implementation

Future<void> removeMarkers(List<Marker> markers) async {
  return GoogleMapsNavigationPlatform.instance.viewAPI.removeMarkers(
    viewId: _viewId,
    markers: markers,
  );
}