Windows Phone 7.5: Building Location-aware Applications by 2012

Windows Phone 7.5: Building Location-aware Applications by 2012

Author:2012
Language: eng
Format: epub
Publisher: Packt Publishing


Now open up the Location simulator and select a few locations around Paris. Do it one at a time and see the real-time pushpin magic!!

You can find this example project in the code files for the book underChapter 3, titled HelloMaps-Pushpin.

Custom map pushpins

We created our own maps application and added a pushpin. Great! But does it look great? To be honest — no, the black pushpin icon is not fancy. In fact the pushpins in the Location simulator are better! (We hope Microsoft guys are reading this line.) We can, however, use the following code to add some content to the pushpin, but it still does not give us the "wow" look:

myPin.Content = newLoc.Position.Location.Latitude.ToString() + ", " +newLoc.Position.Location.Longitude.ToString();



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.