public void OnLocationChanged(Android.Locations.Location location) { float accuracy = location.HasAccuracy ? location.Accuracy : 1000; if (location.HasAltitude) { architectView.SetLocation(location.Latitude, location.Longitude, location.Altitude, accuracy); } else { architectView.SetLocation(location.Latitude, location.Longitude, accuracy); } }
/// <Docs>The new location, as a Location object.</Docs> /// <remarks>Called when the location has changed.</remarks> /// <summary> /// Raises the location changed event. /// </summary> /// <param name="location">Location.</param> public void OnLocationChanged(Location location) { if (location != null) { lastKnownLocation = location; } if (location.HasAltitude) { architectView.SetLocation(location.Latitude, location.Longitude, location.Altitude, location.HasAccuracy ? location.Accuracy : 1000); } else { architectView.SetLocation(location.Latitude, location.Longitude, location.HasAccuracy ? location.Accuracy : 1000); } }