private async Task <MapSpan> MoveToRegionFromCenterAndRadius(Microsoft.Spatial.GeographyPoint currentLocation, int mapSearchDistanceInKM) { // Testing: Get Map Current Location //var currenPosition = new Position(47.760090, -122.205430); var currenPosition = new Position(currentLocation.Latitude, currentLocation.Longitude); return(await MoveToRegionFromCenterAndRadius(currenPosition, mapSearchDistanceInKM)); }
/// <summary> /// Example of locationChangedHandler /// Called when [location changed]. /// </summary> public void OnLocationChanged(Microsoft.Spatial.GeographyPoint geographyPoint) { //either map or person location changes. //App.CurrentLocation = geographyPoint; }