resetFeatureSet method

Future<void> resetFeatureSet()

Implementation

Future<void> resetFeatureSet() async {
  await _mapBloc.isMapReady.future;
  _mapBloc
    ..voyagerFeatureSet.resetFeatureSet()
    ..updateMapConfig(
      _mapBloc.mapConfigNotifier.value.copyWith(
        polygons: _mapBloc.voyagerFeatureSet.polygons,
        markers: _mapBloc.voyagerFeatureSet.markers,
        polylines: _mapBloc.voyagerFeatureSet.polylines,
      ),
    );
}