none
Displaying current location on Bing Maps RRS feed

  • Question

  • Hi,

    I am working on a Windows Store 8.1 application and have used Bing Maps API.

    On the PositionChanged event of the Geolocator object, I have the following code:

    this

    .Dispatcher.RunAsync(CoreDispatcherPriority.Normal, newDispatchedHandler(

                    () =>

                    {currentLocationCoordinates = args.Position.Coordinate;

                        Bing.Maps.

    Locationlocation = newBing.Maps.Location(args.Position.Coordinate.Latitude,

                            args.Position.Coordinate.Longitude);

    MapLayer.SetPosition(pushpin, location);

                        pushpin.Visibility =

    Visibility.Visible;

                        MyMap.SetView(location, 17);

                    }));

    But this event is never triggered. I want to display my current location on the map. Am I missing anything?

    Thanks in advance!

    Friday, May 30, 2014 5:27 AM

Answers