Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BasicGeoposition basicGeopoint = new BasicGeoposition() { Latitude = latitude, Longitude = longitude };
- Geopoint geopoint = new Geopoint(basicGeopoint);
- MapIcon mapIcon = new MapIcon();
- mapIcon.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/marker_icon.png"));
- mapIcon.Location = geopoint;
- mapIcon.Title = title;
- mapIcon.NormalizedAnchorPoint = new Point(0.5, 1.0);
- mapIcon.ZIndex = 0;
- Map.MapElements.Add(mapIcon);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement