Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Building Apps for Windows Phone 8.1: (12) Maps, Geolocation, and Geofencing

Download

Right click “Save as…”

Find out about programming apps that use mapping and the users' locations.

Full course outline:

Follow the Discussion

  • Great information!  It would be better if the convergence was closer but still a nice step forward.

     

    Where is the sample code, please?

     

    Thanks!

  • All sample code for these projects is located here.

    Look for the file labeled "Session 12 Demos"

  • Still going through the excellent videos you guys have done and having the code makes it so much easier to follow along.

     

    Thanks for a great work!

  • Rich CRich C

    You didn't mention (and can't find any mention of it anywhere) on how to enter in a street address and get a Geolocation back that can be used to calculate distance from another Geolocation or current location. Is this possible? If so, can you point me in the right direction?

  • Why not add the code samples to the MSDN Code Sample Gallery?

    Rich C - You can get the coordinates for a location using the maps services: http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn631249.aspx From there you can then either use the map services to calculate the driving directions to get the driving distance between the locations. Alternatively you can use the Haversine formula to calculate the straight line distance (as the bird flies) between the locations. If you don't want to use the Map Services you can also use the Bing Maps REST services to do all this. The benefit of this approach is that you can use the Bing Maps REST services in universal apps.

  • So here's something interesting.

    I'm using exactly the same control as you, I have built a sample that puts icons on the map.

    In your sample, the icon overrides the labels on the map.  In mine, the labels override the icons, causing them to disappear seemingly randomly, but they are really getting overwritten by labels on the map.

    I've tried different Zindex's as high at 11 with no success.  (your Windows Phone map icon is set to 5).

    My sample uses a hub control and looks up the map control at runtime via its "Loaded" event handler, but other than that, I don't see a difference.

    I'll also report this in the forums, but haven't seen anyone else with this problem, so I thought I'd just remark here since you have a sample that works and is for WP 8.1

    -thanks
    -e

Remove this comment

Remove this thread

close

Comment on the Post

Already have a Channel 9 account? Please sign in