none
how to place image with height and width on particular only Longitude and latitude not East,west,north and South co-ordinates on bing map without Move image on Map? RRS feed

  • Question

  • how to place image with height and width on particular only Longitude and latitude not East,west,north and South co-ordinates on bing map without Move image on Map?
    Saturday, March 22, 2014 5:04 AM

Answers

  • What do you mean by not move image on map? If you want to link an image to a coordinate you can do this like so:

    Image img = new Image();
    img.Source = new BitmapImage(new Uri(“ms-appx:/Assets/Logo.png”));
    
    MapLayer.SetPosition(img, MyMap.Center);
    MyMap.Children.Add(img);

    If you want to change how the image is anchored to the map you can use margins on the image of the MapLayer.SetPositionOffset.

    Also, take a look at my free ebook on creating location intelligence Windows Store apps. If shows how to do this and a lot more: http://rbrundritt.wordpress.com/my-book/


    http://rbrundritt.wordpress.com

    Monday, March 24, 2014 10:03 AM