예제 #1
0
        public void LookupMarker()
        {
            //...
            try
            {
                Coordinate coordinate = Gps.Locate(Location);

                GpsMap.Add(new GpsData
                {
                    Latitude    = coordinate.Latidude,
                    Longitude   = coordinate.Longitude,
                    Description = Location
                });

                BusinessApplication.Instance.ShowPopup(string.Format("Placed marker for {0}", Location));
                Location = null;
            }
            catch (InvalidOperationException ex)
            {
                BusinessApplication.Instance.ShowPopup(ex.Message);
            }
        }