Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created November 3, 2018 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannagel/44d4fab8e2b78d243788763f157c5063 to your computer and use it in GitHub Desktop.
Save christiannagel/44d4fab8e2b78d243788763f157c5063 to your computer and use it in GitHub Desktop.
Set the position of the MapControl - XAML Island
private async void OnLoadedMap(object sender, RoutedEventArgs e)
{
if (sender is Toolkit.MapControl mapControl)
{
var point = new Interop.Geopoint(new Interop.BasicGeoposition { Latitude = 48.2, Longitude = 16.3});
bool result = await mapControl.TrySetViewAsync(point);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment