mapkit
The JavaScript API for embedding Apple Maps on your website.
Declaration
class MapKit extends MapKitEventTargetMentioned 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
Handling initialization eventsinit(options)MapKitInitializationOptionsLibrariesloadedLibrariesload(libraryNames)
Maps
Annotations and overlays
Geocoder
Search
Points of interest
filterExcludingAllCategoriesfilterIncludingAllCategoriesPointOfInterestFilterPointsOfInterestSearchMapFeatureAnnotationMapFeatureAnnotationGlyphImagePointOfInterestCategoryMapFeatureType
Directions
Map view customization
Geographical features
importGeoJSON(data, callback)GeoJSONDelegateItemItemCollectionGeoJSONImporterCallbackGeoJSONImportErrorDisplaying Indoor Maps with MapKit JS
Exploring at street level
LookAroundLookAroundOptionsLookAroundPreviewLookAroundPreviewOptionsLookAroundSceneCommonLookAroundOptionsAbstractLookAroundlookAroundViews
Places
PlacePlaceLookupplaceDetailsPlaceSelectionAccessoryOptionsPlaceAnnotationPlaceDetailPlaceSelectionAccessory
Map coordinates
Map units
Version and language
Setting images
Service
Events
Namespace properties
AddressCategoryAddressFilterAnnotationBoundingRegionCameraZoomRangeCircleOverlayCoordinateCoordinateRegionCoordinateSpanDirectionsFeatureVisibilityGeocoderImageAnnotationLineGradientLookAroundLookAroundPreviewLookAroundSceneMapMapFeatureAnnotationMapFeatureTypeMapPointMapRectMapSizeMarkerAnnotationPaddingPlacePlaceAnnotationPlaceDetailPlaceLookupPlaceSelectionAccessoryPointOfInterestCategoryPointOfInterestFilterPointsOfInterestSearchPolygonOverlayPolylineOverlaySearchSearchAutocompleteResultStyleTileOverlay