Closed davidbuckleyni closed 4 years ago
I need the map to open at the user's current position. So what I do is get the current position using Xamarin Essentials GeoLocation. I then use the MoveToRegion method of the map, e.g:
map.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(YOURLATITUDEHERE, YOURLONGITUDEHERE), Distance.FromMeters(1000)), false);
Not sure if there's a better way, but this works for me.
map.MoveToRegion
is deprecated.
You can use map.InitialCameraUpdate
property in you Page's constructor or XAML.
For the life of me I can't see how I set up the default map position when the map firsts start up or does it go to the first marker position.