BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private async void AddMarkerInCurrentLocation()
{ try { // To get the current location var location = await Geolocation.GetLastKnownLocationAsync(); // Add the marker on the current location if (location != null) { CustomMarker marker = new CustomMarker(); marker.Latitude = location.Latitude.ToString(); marker.Longitude = location.Longitude.ToString(); layer.Markers.Add(marker); } } catch (Exception ex) { // Handle not supported on device exception await Application.Current.MainPage.DisplayAlert("Alert", ex.Message, "Ok"); } } |