Examples and Sample Code

Use the sample code below to easily add Maps functionality to your websites. To communicate with Maps services, you’ll need to set up your Maps identifiers, keys, and tokens by signing in to your developer account and visiting Certificates, Identifiers & Profiles.

Embed

View description and code

Add Annotations

View description and code

Custom Callout

View description and code

Draggable Annotations

View description and code

MapKit JS Dashboard

Track your website’s use of Apple Maps services with the MapKit JS Dashboard. Monitor map initializations and service requests in real-time, or see up to a year of activity by day, week, month, or year.

Sign in to the MapKit JS Dashboard