none
Bing Maps for Windows Store Apps - Custom Pushpin class RRS feed

  • Question

  • Hi, 
    I'm working on an app that lets a user tap locations on a map to place a marker, save a title and a description for that location. I found the overlayItem class for Android is similar to what I need for my app. 

    I have searched for C# examples to use in my app already but end up going in circles, so I was just wondering if there is a class out there already that may be suitable, or whether it would be better to make my own? 

    I was thinking something along the lines of this and to make my own get and set methods:

    class windowsOverlayItem{

    Location loc;

    String title;

    String description;

    Pushpin pin;

    }

    Any help would be great! Thanks in advance!

    Wednesday, October 17, 2012 8:20 PM

Answers

  • You can overlay any arbitrary xaml element on the map.

    MapLayer.SetPosition(myButton, new Location(0, 0));

    map.Children.Add(myButton);

    Wednesday, October 17, 2012 10:25 PM