It’s quite easy to add a map into your app using MapKit. But what if you want to decorate or customize the map provided by Apple with your own annotations and images?
Luckily, Apple provides and easy way to do this with Custom Overlay Views.
In this tutorial, you create an app for the Six Flags Magic Mountain amusement park. If you’re a roller coaster fan in the LA area, you’ll be sure to appreciate this app :]
Just think about what a visitor to the park would be interested in. Things like the location of specific attractions, routes to the various rides and roller coasters, and the location of characters around the park. These are perfect candidates for custom overlay images – and that’s exactly what you’ll be adding in this tutorial.
Keep reading to add some excitement to these vanilla maps!
Note: You have two options for how to proceed with this tutorial based on your experience level:
- Already familiar with MapKit? If you’re already familiar with MapKit and want to dive right into the Overlay Images code, you can skip (or scan) ahead to the “What a View” section – we have a starter project waiting for you there.
- New to MapKit? If you are new to MapKit, keep reading and I’ll walk you through adding map into your app from the very beginning!