0

Observe the coordinates in the map screenshot. The longitude should be a negative value no? Does anyone know what's going on here? Here's the code I use to label that target:

private void TargetMap_MapTapped(MapControl sender, MapInputEventArgs args)
    {
        TargetMap.MapElements.Remove(TargetMapIcon);

        TargetMap.MapElements.Add(TargetMapIcon);
        var Lat = args.Location.Position.Latitude;
        var Lon = args.Location.Position.Longitude;

        TargetMapIcon.Title = Lat + ", " + Lon;
        BasicGeoposition TargetPosition = new BasicGeoposition() { Latitude = Lat, Longitude = Lon };
        Geopoint TargetPoint = new Geopoint(TargetPosition);
        //TargetMap.Center = TargetPoint;
        TargetMapIcon.Location = TargetPoint;
    }

enter image description here

Brizzler
  • 79
  • 9
  • I agree that longitude in/near New York City NY should be -73.95 degrees or thereabouts, certainly not +73.95 degrees. Can't help with why/how Bing Maps appears to be losing the minus sign. – John Machin Feb 17 '17 at 22:43
  • How does the definition of TargetMapIcon look like? Does it have a template that you could show us? – Clemens Feb 18 '17 at 10:18
  • public MapIcon TargetMapIcon = new MapIcon() { Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Images/UI/Icons/bullseye.png")) }; – Brizzler Feb 18 '17 at 13:37
  • view this video to see it in context https://www.facebook.com/brett.ezra/videos/vb.100011946949336/234391300302433/?type=2&theater – Brizzler Feb 18 '17 at 13:52

0 Answers0