googleMapCustomTour method

Future<void> googleMapCustomTour()

Implementation

Future<void> googleMapCustomTour() async {
  List<LatLng> points = [];
  for (Marker marker in _customTourMainMarkers) {
    points.add(marker.position);
    if (_isTourOn) {
      continue;
    } else {
      break;
    }
  }
  for (LatLng point in points) {
    flyToLocation(point);
    await Future.delayed(Duration(seconds: 3));
    if (_isTourOn) {
      continue;
    } else {
      break;
    }
  }
}