This chapter began with an overview of the Map
control and walked through the creation of a Map API key pair. You saw how to programmatically manipulate the map view, in particular how to pan and zoom, as well as how to adjust the pitch and heading of the map view. You looked at using the new Geolocator
API to pinpoint the phone’s current location on the map.
The chapter then continued from the previous chapter. You saw how to track the phone’s location on a map using the Geolocator
class and the custom mock IGeoLocator
implementation.
Next, the chapter examined the Route Query API and how to locate a route between two user-provided addresses. The chapter illustrated how to coordinate multiple asynchronous operations and how to create an asynchronous method using a task completion source. You also looked at hiding and revealing page elements using a viewmodel’s VisualState
property in conjunction with an attached property and a custom VisualStateUtility
class.
Finally, the chapter demonstrated how to present a list of itinerary items as an expandable list. You looked at allowing the user to download maps for offline viewing and at launching the built-in Maps app using the launcher API.
3.144.97.187