2

I want to get current location in Windows Phone 7 and display it on a Bing Map (on WP7) at the same time.

Factor Mystic
  • 26,279
  • 16
  • 79
  • 95
MarTech
  • 115
  • 3
  • 12

1 Answers1

4

You need to get your location from the GeoCoordinateWatcher and then add a pushpin at the returned location.

There's an example of how to do this at http://shelastyle.net/blog/windows-phone-7-app-tips-drawing-my-location-on-a-map/

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
  • Hey Matt, the link no longer works. Do you know if the same content is posted elsewhere? I'm looking for it too. Thanks! – CodingInCircles Feb 22 '13 at 07:13
  • 1
    @CodingInCircles if you're still on WP7 try http://windowsphonegeek.com/articles/windows-phone-map-control-display-current-location-and-remove-previous-pushpins otherwise see http://www.developer.nokia.com/Blogs/Community/2012/12/03/windows-phone-8-maps-examples-featured-project-of-the-month-december-2012/ – Matt Lacey Feb 25 '13 at 10:44
  • Thanks Matt! :) Any idea where I can get Search Service code from? I've been looking for over a week now and can't find a decent working example. Please refer to my question at: http://stackoverflow.com/questions/15019544/using-the-searchservice-from-bing-maps-in-wp7/15022418#comment21181239_15022418. Thanks! :) – CodingInCircles Feb 25 '13 at 23:26