示例#1
0
        public async Task PopulatePopup(double lat, double lng)
        {
            try
            {
                var thisFault = await DatabaseService.GetFaultByCoordinates(lat, lng);

                FaultData = new ObservableCollection <Fault>();
                FaultData.Add(thisFault);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine("Couldn't retrieve faults " + ex.Message);
            }
        }
示例#2
0
 /// <summary>
 /// Find a single fault when user clicks respective pin
 /// </summary>
 /// <param name="latitude"></param>
 /// <param name="longitude"></param>
 /// <returns></returns>
 public async Task <Fault> FindFault(double latitude, double longitude)
 {
     return(await DatabaseService.GetFaultByCoordinates(latitude, longitude));
 }