Exemple #1
0
 public void SetupTripStart()
 {
     if (StartPoint.Id == int.MaxValue || EndPoint.Id == int.MaxValue)
     {
         MessengerService.Toast(this, "Start or end value not valid", true);
     }
     else
     {
         StartPoint = DatabaseService.GetInstance().GetPoint(StartPoint.Id);
         EndPoint   = DatabaseService.GetInstance().GetPoint(EndPoint.Id);
         var current = LocationService.GetInstance().CurrentLocation;
         MapDrawer.DrawMarker(StartPoint);
         MapDrawer.DrawMarker(EndPoint);
         MapDrawer.MoveCamera(current);
         MapDrawer.AnimateCameraBounds(new[] { StartPoint, EndPoint, current });
         MapDrawer.DrawLine(StartPoint, EndPoint);
     }
 }