Contents

mapkit

The JavaScript API for embedding Apple Maps on your website.

Declaration

class MapKit extends MapKitEventTarget

Mentioned in

Overview

The mapkit object is the main namespace for the MapKit JS framework. Similar to MapKit for apps, you can use MapKit JS to display interactive maps with customized annotations and overlays, and provide directions and search services. Your app can supply step-by-step navigation, and help a user find a location by autocompleting a search query.

MapKit JS lets you customize the look of your map. You can choose style details for overlays and annotations, display a standard street map or one that uses satellite imagery, and adjust the visibility of map controls. Additionally, you can customize a map’s behavior by providing event handlers that cause the map to scroll or respond when users select items. You can also enable or disable panning, zooming, and rotation.

Topics

Initialization

Maps

Annotations and overlays

Geocoder

Search

Points of interest

Directions

Map view customization

Geographical features

Exploring at street level

Places

Map coordinates

Map units

Version and language

Setting images

Service

Events

Namespace properties

See Also

Essentials