Map
An embeddable interactive map that you add to a webpage.
Declaration
class Map extends MapKitEventTargetMentioned in
Overview
A map is a self-contained view object that you embed on a webpage. It’s possible to have multiple independent maps on a single webpage, although typically webpages only need one interactive map.
Topics
Creating a map
Handling map events
Accessing interaction properties
Manipulating the visible portion of the map
centersetCenterAnimated(coordinate, animated)regionsetRegionAnimated(region, animated)rotationsetRotationAnimated(degrees, animated)visibleMapRectsetVisibleMapRectAnimated(mapRect, animated)cameraBoundarysetCameraBoundaryAnimated(mapRect, animated)CameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated(distance, animated)cameraZoomRangesetCameraZoomRangeAnimated(cameraZoomRange, animated)
Showing the map’s controls
Configuring the map’s appearance
colorSchemeColorSchemedistancesDistancemapTypeMapTypepaddingpointOfInterestFiltershowsPointsOfInterestshowItems(items, options)MapShowItemsOptionstintColor
Annotating the map
annotationsselectedAnnotationannotationForClusterannotationsInMapRect(mapRect)addAnnotation(annotation)addAnnotations(annotations)removeAnnotation(annotation)removeAnnotations(annotations)
Adding and removing overlays
overlaysselectedOverlayoverlaysAtPoint(point)addOverlay(overlay)addOverlays(overlays)removeOverlay(overlay)removeOverlays(overlays)topOverlayAtPoint(point)
Adding and removing geographical features
Adding and removing tile overlays
tileOverlaysaddTileOverlay(tileOverlay)addTileOverlays(tileOverlays)removeTileOverlay(tileOverlay)removeTileOverlays(tileOverlays)
Exploring at street level
LookAroundLookAroundOptionsLookAroundPreviewLookAroundPreviewOptionsLookAroundSceneCommonLookAroundOptions