private static Geopoint GenerateGeoPoint(DojoLocation location) { return(new Geopoint(new BasicGeoposition() { Latitude = location.Latitude, Longitude = location.Longitude })); }
private async void LoadMap(DojoLocation location) { Geopoint eventLocation = GenerateGeoPoint(location); MapIcon myPOI = new MapIcon { Location = eventLocation, NormalizedAnchorPoint = new Point(0.5, 1.0), Title = "Coder Dojo!", ZIndex = 0 }; EventMap.MapElements.Add(myPOI); await EventMap.TrySetSceneAsync(MapScene.CreateFromLocationAndRadius(eventLocation, 150)); }