예제 #1
0
 private static Geopoint GenerateGeoPoint(DojoLocation location)
 {
     return(new Geopoint(new BasicGeoposition()
     {
         Latitude = location.Latitude,
         Longitude = location.Longitude
     }));
 }
예제 #2
0
        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));
        }