Map
An embeddable interactive map that you add to a webpage.
Declaration
class Map extends EventTargetMentioned 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()regionsetRegionAnimated()rotationsetRotationAnimated()visibleMapRectsetVisibleMapRectAnimated()cameraBoundarysetCameraBoundaryAnimated()CameraBoundaryDescriptioncameraDistancesetCameraDistanceAnimated()cameraZoomRangesetCameraZoomRangeAnimated()
Showing the map’s controls
Configuring the map’s appearance
colorSchemedistancesmapTypepaddingpointOfInterestFiltershowsPointsOfInterestshowItems()MapShowItemsOptionstintColor
Annotating the map
annotationsselectedAnnotationannotationForClusterannotationsInMapRect()addAnnotation()addAnnotations()removeAnnotation()removeAnnotations()
Adding and removing overlays
overlaysselectedOverlayoverlaysAtPoint()addOverlay()addOverlays()removeOverlay()removeOverlays()topOverlayAtPoint()
Adding and removing geographical features
Adding and removing tile overlays
Exploring at street level
LookAroundLookAroundOptionsLookAroundPreviewLookAroundPreviewOptionsLookAroundSceneCommonLookAroundOptions