O'Reilly logo

Beginning iPad™ Application Development by Wei-Meng Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. Displaying Maps

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • How to display Google Maps using the Map Kit framework

  • How to obtain geographical data using the Core Location framework

  • How to obtain directional data to rotate the map

  • How to add annotations to a map

  • How to perform reverse geocoding to obtain an address

With the advent of mobile devices, users are more and more accustomed to having access to locale information at their fingertips. In this chapter, you will learn how to use the Map Kit to give users that information quickly and easily.

DISPLAYING MAPS AND MONITORING CHANGES USING THE MAP KIT

The iPhone SDK 3.2 ships with the Map Kit framework, a set of libraries that work with the Google Mobile Maps Service. You can use the Map Kit to display maps within your iPad application, as well as to display your current location. In fact, you can enable the Map Kit to track your current location simply by setting a single property, and Map Kit will then automatically display your current location as you move.

In the following Try It Out, you will get started with the Map Kit. In particular, you will use the Map Kit to display your current location on the map.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required