© Jeffrey Linwood 2020
J. LinwoodBuild Location Apps on iOS with Swifthttps://doi.org/10.1007/978-1-4842-6083-8_3

3. Displaying Annotations on a MapKit Map

Jeffrey Linwood1 
Austin, TX, USA

In Chapter 1, your first iOS map application displayed one point on the map, with the default red pin at its location. The MapKit framework is capable of much more when it comes to displaying annotations. We can customize the images for the annotations and the callouts seen when a user taps on an annotation.

Let’s continue building on top of the FirstMapsApp project that we created in Chapter 1 and then added user locations in Chapter 2.

Understanding MapKit and annotations

The MapKit framework maintains a distinction between annotations – the data displayed on ...

Get Build Location Apps on iOS with Swift: Use Apple Maps, Google Maps, and Mapbox to Code Location Aware Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.