Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. BasicGeoposition basicGeopoint = new BasicGeoposition() { Latitude = latitude, Longitude = longitude };
  2. Geopoint geopoint = new Geopoint(basicGeopoint);
  3. MapIcon mapIcon = new MapIcon();
  4. mapIcon.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/marker_icon.png"));
  5. mapIcon.Location = geopoint;
  6. mapIcon.Title = title;
  7. mapIcon.NormalizedAnchorPoint = new Point(0.5, 1.0);
  8. mapIcon.ZIndex = 0;
  9. Map.MapElements.Add(mapIcon);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement