/// <summary> /// Shows flying range from given point; shows a half transparent cone on the map that is /// created with some flying parameters like gliding ratio, wind spee and direction. /// </summary> /// <param name="point">point to calculate flying range for</param> /// <returns>task to wait on</returns> private async Task ShowFlyingRange(MapPoint point) { FlyingRangeParameters parameters = await FlyingRangePopupPage.ShowAsync(); if (parameters != null) { this.mapView.ShowFlyingRange(point, parameters); } }
/// <summary> /// Shows "flying parameters" popup page and lets the user edit the values. /// </summary> /// <returns>flying range parameters</returns> public static async Task <FlyingRangeParameters> ShowAsync() { var popupPage = new FlyingRangePopupPage() { tcs = new TaskCompletionSource <FlyingRangeParameters>() }; await popupPage.Navigation.PushPopupAsync(popupPage); return(await popupPage.tcs.Task); }