上次更新时间:2024 年 5 月 8 日,星期三
这是 Maps JavaScript API 3.56(每周渠道)中所有类、方法和接口的索引。 此参考文档会及时更新 API 的最新更改。
点击任意项的名称即可查看详细文档。
全局概念
google.maps
- google.maps 命名空间
-
静态方法:
importLibrary
常量:
version
设置(Beta 版)
- 设置类
-
静态方法:
getInstance
事件系统
- 事件类别
-
静态方法:
addListener
、addListenerOnce
、clearInstanceListeners
、clearListeners
、hasListeners
、removeListener
、trigger
、
、addDomListeneraddDomListenerOnce - MapsEventListener 接口
-
方法:
remove
- MVCObject 类
-
方法:
addListener
、bindTo
、get
、notify
、set
、setValues
、unbind
、unbindAll
- MVCArray 类
-
方法:
clear
、forEach
、getArray
、getAt
、getLength
、insertAt
、pop
、push
、removeAt
、setAt
- ErrorEvent 接口
-
属性:
error
错误
- MapsNetworkError 类
- MapsRequestError 类
- MapsServerError 类
- MapsNetworkErrorEndpoint 常量
-
常量:
DIRECTIONS_ROUTE
、DISTANCE_MATRIX
、ELEVATION_ALONG_PATH
、ELEVATION_LOCATIONS
、FLEET_ENGINE_GET_DELIVERY_VEHICLE
、FLEET_ENGINE_GET_TRIP
、FLEET_ENGINE_GET_VEHICLE
、FLEET_ENGINE_LIST_DELIVERY_VEHICLES
、FLEET_ENGINE_LIST_TASKS
、FLEET_ENGINE_LIST_VEHICLES
、FLEET_ENGINE_SEARCH_TASKS
、GEOCODER_GEOCODE
、MAPS_MAX_ZOOM
、PLACES_AUTOCOMPLETE
、PLACES_DETAILS
、PLACES_FIND_PLACE_FROM_PHONE_NUMBER
、PLACES_FIND_PLACE_FROM_QUERY
、PLACES_GATEWAY
、PLACES_GET_PLACE
、PLACES_GET_PLACE
、PLACES_GET_PLACE
、PLACES_LOCAL_CONTEXT_SEARCH
PLACES_NEARBY_SEARCH
PLACES_SEARCH_TEXT
STREETVIEW_GET_PANORAMA
地图
地图
- Map 类
-
属性:
controls
、data
、mapTypes
、overlayMapTypes
方法:
fitBounds
、getBounds
、getCenter
、getClickableIcons
、getDatasetFeatureLayer
、getDiv
、getFeatureLayer
、getHeading
、getHeadingInteractionEnabled
、getMapCapabilities
、getMapTypeId
、getProjection
、getRenderingType
、getStreetView
、getTilt
、getTiltInteractionEnabled
、getZoom
、moveCamera
、panBy
panTo
panToBounds
setCenter
setClickableIcons
setHeading
setHeadingInteractionEnabled
setMapTypeId
setOptions
setRenderingType
setStreetView
setTilt
setTiltInteractionEnabled
setZoom
常量:
DEMO_MAP_ID
事件:
bounds_changed
、center_changed
、click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、heading_changed
、idle
、isfractionalzoomenabled_changed
、mapcapabilities_changed
、maptypeid_changed
、mousemove
、mouseout
、mouseover
、projection_changed
、renderingtype_changed
、tilesloaded
、tilesloaded
、 {1tilt_changed
zoom_changed
rightclick - MapOptions 接口
-
属性:
backgroundColor
、center
、clickableIcons
、controlSize
、disableDefaultUI
、disableDoubleClickZoom
、draggableCursor
、draggingCursor
、fullscreenControl
、fullscreenControlOptions
、gestureHandling
、heading
、headingInteractionEnabled
、isFractionalZoomEnabled
、keyboardShortcuts
、mapId
、mapTypeControl
、mapTypeControlOptions
、mapTypeId
、mapTypeId
、mapTypeId
maxZoom
minZoom
noClear
renderingType
restriction
rotateControl
rotateControlOptions
scaleControl
scaleControlOptions
scrollwheel
streetView
streetViewControl
streetViewControlOptions
styles
tilt
tiltInteractionEnabled
zoom
zoomControl
zoomControlOptions
draggablepanControlpanControlOptions - MapElement 类
-
属性:
center
、headingInteractionDisabled
、innerMap
、mapId
、renderingType
、tiltInteractionDisabled
、zoom
方法:
addEventListener
、removeEventListener
事件:
gmp-zoomchange
- MapElementOptions 接口
-
属性:
center
、headingInteractionDisabled
、mapId
、renderingType
、tiltInteractionDisabled
、zoom
- ZoomChangeEvent 类
- MapTypeStyle 接口
- MapMouseEvent 接口
-
方法:
stop
- IconMouseEvent 接口
-
属性:
placeId
- MapTypeId 常量
- MapTypeRegistry 类
-
方法:
set
- MapRestriction 接口
- TrafficLayer 类
- TrafficLayerOptions 接口
-
属性:
autoRefresh
、map
- TransitLayer 类
- BicyclingLayer 类
- CameraOptions 接口
- VisibleRegion 接口
- RenderingType 常量
- MapCapabilities 接口
-
属性:
isAdvancedMarkersAvailable
、isDataDrivenStylingAvailable
、isWebGLOverlayViewAvailable
WebGL
- WebGLOverlayView 类
-
方法:
getMap
、onAdd
、onContextLost
、onContextRestored
、onDraw
、onRemove
、onStateUpdate
、requestRedraw
、requestStateUpdate
、setMap
- WebGLDrawOptions 接口
-
属性:
gl
、transformer
- WebGLStateOptions 接口
-
属性:
gl
- CoordinateTransformer 接口
- CameraParams 接口
坐标
- LatLng 类
- LatLngLiteral 接口
- LatLngBounds 类
-
方法:
contains
、equals
、extend
、getCenter
、getNorthEast
、getSouthWest
、intersects
、isEmpty
、toJSON
、toSpan
、toString
、toUrlValue
、union
常量:
MAX_BOUNDS
- LatLngBoundsLiteral 接口
- LatLngAltitude 类
- LatLngAltitudeLiteral 接口
- Point 类
- 大小类别
- 内边距接口
- CircleLiteral 接口
数据驱动型样式
- FeatureLayer 接口
-
属性:
datasetId
、featureType
、isAvailable
、style
方法:
addListener
- FeatureType 常量
-
常量:
ADMINISTRATIVE_AREA_LEVEL_1
、ADMINISTRATIVE_AREA_LEVEL_2
、COUNTRY
、DATASET
、LOCALITY
、POSTAL_CODE
、SCHOOL_DISTRICT
- FeatureStyleFunction 类型定义符
- FeatureStyleFunctionOptions 接口
-
属性:
feature
- FeatureStyleOptions 接口
-
属性:
fillColor
、fillOpacity
、strokeColor
、strokeOpacity
、strokeWeight
- 功能接口
-
属性:
featureType
- PlaceFeature 接口
-
属性:
placeId
方法:
fetchPlace
- DatasetFeature 接口
- FeatureMouseEvent 接口
-
属性:
features
控制
- FullscreenControlOptions 界面
-
属性:
position
- MapTypeControlOptions 接口
- MapTypeControlStyle 常量
- MotionTrackingControlOptions 界面
-
属性:
position
- PanControlOptions 接口
-
属性:
position
- RotationControlOptions 接口
-
属性:
position
- ScaleControlOptions 接口
-
属性:
style
- ScaleControlStyle 常量
-
常量:
DEFAULT
- StreetViewControlOptions 界面
- ZoomControlOptions 接口
-
属性:
position
- ControlPosition 常量
-
常量:
BLOCK_END_INLINE_CENTER
、BLOCK_END_INLINE_END
、BLOCK_END_INLINE_START
、BLOCK_START_INLINE_CENTER
、BLOCK_START_INLINE_END
、BLOCK_START_INLINE_START
、BOTTOM_CENTER
、BOTTOM_LEFT
、BOTTOM_RIGHT
、INLINE_END_BLOCK_CENTER
、INLINE_END_BLOCK_END
、INLINE_END_BLOCK_START
、INLINE_START_BLOCK_CENTER
、INLINE_START_BLOCK_END
、INLINE_START_BLOCK_START
、LEFT_BOTTOM
、LEFT_CENTER
、LEFT_TOP
、RIGHT_BOTTOM
、RIGHT_BOTTOM
、RIGHT_BOTTOM
、RIGHT_CENTER
RIGHT_TOP
TOP_CENTER
TOP_LEFT
TOP_RIGHT
几何图形库
- 编码命名空间
-
静态方法:
decodePath
、encodePath
- 球形命名空间
-
静态方法:
computeArea
、computeDistanceBetween
、computeHeading
、computeLength
、computeOffset
、computeOffsetOrigin
、computeSignedArea
、interpolate
- poly 命名空间
在地图上绘制
高级标记
- AdvancedMarkerElement 类
-
属性:
collisionBehavior
、content
、element
、gmpClickable
、gmpDraggable
、map
、position
、title
、zIndex
- AdvancedMarkerElementOptions 接口
-
属性:
collisionBehavior
、content
、gmpClickable
、gmpDraggable
、map
、position
、title
、zIndex
- AdvancedMarkerClickEvent 类
- PinElement 类
- PinElementOptions 接口
信息窗口
- InfoWindow 类
-
方法:
close
、focus
、getContent
、getPosition
、getZIndex
、open
、setContent
、setOptions
、setPosition
、setZIndex
事件:
close
、closeclick
、content_changed
、domready
、headercontent_changed
、headerdisabled_changed
、position_changed
、visible
、zindex_changed
- InfoWindowOptions 接口
-
属性:
ariaLabel
、content
、disableAutoPan
、headerContent
、headerDisabled
、maxWidth
、minWidth
、pixelOffset
、position
、zIndex
- InfoWindowOpenOptions 接口
-
属性:
anchor
、map
、shouldFocus
多边形
- 折线类
-
方法:
getDraggable
、getEditable
、getMap
、getPath
、getVisible
、setDraggable
、setEditable
、setMap
、setOptions
、setPath
、setVisible
事件:
click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、rightclick - PolygonOptions 接口
-
属性:
clickable
、draggable
、editable
、geodesic
、icons
、map
、path
、strokeColor
、strokeOpacity
、strokeWeight
、visible
、zIndex
- IconSequence 接口
- Polygon 类
-
方法:
getDraggable
、getEditable
、getMap
、getPath
、getPaths
、getVisible
、setDraggable
、setEditable
、setMap
、setOptions
、setPath
、setPaths
、setVisible
事件:
click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、rightclick - PolygonOptions 接口
-
属性:
clickable
、draggable
、editable
、fillColor
、fillOpacity
、geodesic
、map
、paths
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- PolyMouseEvent 接口
- Rectangle 类
-
方法:
getBounds
、getDraggable
、getEditable
、getMap
、getVisible
、setBounds
、setDraggable
、setEditable
、setMap
、setOptions
、setVisible
事件:
bounds_changed
、click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、rightclick - RectangleOptions 接口
-
属性:
bounds
、clickable
、draggable
、editable
、fillColor
、fillOpacity
、map
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- Circle 类
-
方法:
getBounds
、getCenter
、getDraggable
、getEditable
、getMap
、getRadius
、getVisible
、setCenter
、setDraggable
、setEditable
、setMap
、setOptions
、setRadius
、setVisible
事件:
center_changed
、click
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、radius_changed
、rightclick
- CircleOptions 接口
-
属性:
center
、clickable
、draggable
、editable
、fillColor
、fillOpacity
、map
、radius
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- StrokePosition 常量
数据
- 数据类
-
方法:
add
、addGeoJson
、contains
、forEach
、getControlPosition
、getControls
、getDrawingMode
、getFeatureById
、getMap
、getStyle
、loadGeoJson
、overrideStyle
、remove
、revertStyle
、setControlPosition
、setControls
、setDrawingMode
、setMap
、setStyle
、toGeoJson
事件:
addfeature
、click
、contextmenu
、dblclick
、mousedown
、mouseout
、mouseover
、mouseup
、removefeature
、removeproperty
、setgeometry
、setproperty
、rightclick - Data.DataOptions 接口
-
属性:
controlPosition
、controls
、drawingMode
、featureFactory
、map
、style
- Data.GeoJsonOptions 接口
- Data.StyleOptions 接口
-
属性:
animation
、clickable
、cursor
、draggable
、editable
、fillColor
、fillOpacity
、icon
、icons
、label
、opacity
、shape
、strokeColor
、strokeOpacity
、strokeWeight
、title
、visible
、zIndex
- Data.StylingFunction typedef
- Data.Feature 类
-
方法:
forEachProperty
、getGeometry
、getId
、getProperty
、removeProperty
、setGeometry
、setProperty
、toGeoJson
- Data.FeatureOptions 接口
-
属性:
geometry
、id
、properties
- Data.Geometry 接口
- Data.Point 类
- Data.MultiPoint 类
- Data.LineString 类
- Data.MultiLineString 类
- Data.LinearRing 类
- Data.Polygon 类
- Data.MultiPolygon 类
- Data.GeometryCollection 类
- Data.MouseEvent 接口
-
属性:
feature
- Data.AddFeatureEvent 接口
-
属性:
feature
- Data.RemoveFeatureEvent 接口
-
属性:
feature
- Data.SetGeometryEvent 接口
- Data.SetPropertyEvent 接口
- Data.RemovePropertyEvent 接口
DOM 元素
- OverlayView 类
- MapPanes 接口
-
属性:
floatPane
、mapPane
、markerLayer
、overlayLayer
、overlayMouseTarget
- MapCanvasProjection 接口
-
方法:
fromContainerPixelToLatLng
、fromDivPixelToLatLng
、fromLatLngToContainerPixel
、fromLatLngToDivPixel
、getVisibleRegion
、getWorldWidth
KML
- KmlLayer 类
-
方法:
getDefaultViewport
、getMap
、getMetadata
、getStatus
、getUrl
、getZIndex
、setMap
、setOptions
、setUrl
、setZIndex
- KmlLayerOptions 接口
-
属性:
clickable
、map
、preserveViewport
、screenOverlays
、suppressInfoWindows
、url
、zIndex
- KmlLayerMetadata 接口
- KmlLayerStatus 常量
-
常量:
DOCUMENT_NOT_FOUND
、DOCUMENT_TOO_LARGE
、FETCH_ERROR
、INVALID_DOCUMENT
、INVALID_REQUEST
、LIMITS_EXCEEDED
、OK
、TIMED_OUT
、UNKNOWN
- KmlMouseEvent 接口
- KmlFeatureData 接口
- KmlAuthor 接口
图像叠加层
- MapType 接口
- 投影接口
- ImageMapType 类
-
属性:
alt
、maxZoom
、minZoom
、name
、projection
、radius
、tileSize
方法:
getOpacity
、getTile
、releaseTile
、setOpacity
事件:
tilesloaded
- ImageMapTypeOptions 接口
- GroundOverlay 类
- GroundOverlayOptions 接口
- StyledMapType 类
- StyledMapTypeOptions 接口
绘图库
- DrawingManager 类
-
方法:
getDrawingMode
、getMap
、setDrawingMode
、setMap
、setOptions
事件:
circlecomplete
、markercomplete
、overlaycomplete
、polygoncomplete
、polylinecomplete
、rectanglecomplete
- DrawingManagerOptions 界面
-
属性:
circleOptions
、drawingControl
、drawingControlOptions
、drawingMode
、map
、markerOptions
、polygonOptions
、polylineOptions
、rectangleOptions
- DrawingControlOptions 界面
- OverlayCompleteEvent 接口
- OverlayType 常量
热图
- HeatmapLayer 类
- HeatmapLayerOptions 接口
-
属性:
data
、dissipating
、gradient
、map
、maxIntensity
、opacity
、radius
- WeightedLocation 接口
最大缩放
标记(旧版)
Marker 类-
方法:
getAnimation
、getClickable
、getCursor
、getDraggable
、getIcon
、getLabel
、getMap
、getOpacity
、getPosition
、getShape
、getTitle
、getVisible
、getZIndex
、setAnimation
、setClickable
、setCursor
、setDraggable
、setIcon
、setLabel
、setLabel
setMap
setOpacity
setOptions
setPosition
setShape
setTitle
setVisible
setZIndex
常量:
MAX_ZINDEX
事件:
animation_changed
、click
、clickable_changed
、contextmenu
、cursor_changed
、dblclick
、drag
、dragend
、draggable_changed
、dragstart
、flat_changed
、icon_changed
、mousedown
、mouseout
、mouseover
、mouseup
、position_changed
、shape_changed
、title_changed
、title_changed
、 {1visible_changed
zindex_changed
rightclick MarkerOptions 接口-
属性:
anchorPoint
、animation
、clickable
、crossOnDrag
、cursor
、draggable
、icon
、label
、map
、opacity
、optimized
、position
、shape
、title
、visible
、zIndex
、collisionBehavior - CollisionBehavior 常量
-
常量:
OPTIONAL_AND_HIDES_LOWER_PRIORITY
、REQUIRED
、REQUIRED_AND_HIDES_OPTIONAL
- 图标界面
- MarkerLabel 接口
- MarkerShape 接口
- 符号界面
-
属性:
anchor
、fillColor
、fillOpacity
、labelOrigin
、path
、rotation
、scale
、strokeColor
、strokeOpacity
、strokeWeight
- SymbolPath 常量
-
常量:
BACKWARD_CLOSED_ARROW
、BACKWARD_OPEN_ARROW
、CIRCLE
、FORWARD_CLOSED_ARROW
、FORWARD_OPEN_ARROW
- 动画常量
街景
渲染
- StreetViewPanorama 类
-
属性:
controls
方法:
focus
、getLinks
、getLocation
、getMotionTracking
、getPano
、getPhotographerPov
、getPosition
、getPov
、getStatus
、getVisible
、getZoom
、registerPanoProvider
、setLinks
、setMotionTracking
、setOptions
、setPano
、setPosition
、setPov
、setVisible
、setZoom
事件:
closeclick
、pano_changed
、position_changed
、pov_changed
、resize
、status_changed
、visible_changed
、zoom_changed
- StreetViewPanoramaOptions 界面
-
属性:
addressControl
、addressControlOptions
、clickToGo
、controlSize
、disableDefaultUI
、disableDoubleClickZoom
、enableCloseButton
、fullscreenControl
、fullscreenControlOptions
、imageDateControl
、linksControl
、motionTracking
、motionTrackingControl
、motionTrackingControlOptions
、panControl
、panControlOptions
、pano
、position
、pov
、pov
、pov
scrollwheel
showRoadLabels
visible
zoom
zoomControl
zoomControlOptions
- StreetViewAddressControlOptions 接口
-
属性:
position
- PanoProviderOptions 接口
-
属性:
cors
- StreetViewTileData 接口
-
属性:
centerHeading
、tileSize
、worldSize
方法:
getTileUrl
- StreetViewPov 界面
- StreetViewCoverageLayer 类
服务
- StreetViewService 类
-
方法:
getPanorama
- StreetViewStatus 常量
- StreetViewLocationRequest 接口
- StreetViewPanoRequest 接口
-
属性:
pano
- StreetViewResponse 界面
-
属性:
data
- StreetViewLocation 界面
- StreetViewPreference 常量
- StreetViewSource 常量
- StreetViewPanoramaData 接口
- StreetViewLink 界面
地点
地点微件
- PlaceAutocompleteElement 类
-
属性:
componentRestrictions
、locationBias
、locationRestriction
、name
、requestedLanguage
、requestedRegion
、types
- PlaceAutocompleteElementOptions 接口
-
属性:
componentRestrictions
、locationBias
、locationRestriction
、requestedLanguage
、requestedRegion
、types
- PlaceAutocompletePlaceSelectEvent 类
-
属性:
place
- PlaceAutocompleteRequestErrorEvent 类
- Autocomplete 类
-
方法:
getBounds
、getFields
、getPlace
、setBounds
、setComponentRestrictions
、setFields
、setOptions
、setTypes
事件:
place_changed
- AutocompleteOptions 界面
-
属性:
bounds
、componentRestrictions
、fields
、strictBounds
、types
、placeIdOnly - SearchBox 类
-
方法:
getBounds
、getPlaces
、setBounds
事件:
places_changed
- SearchBoxOptions 界面
-
属性:
bounds
Place
- 地点类
-
静态方法:
searchByText
、searchNearby
属性:
accessibilityOptions
、addressComponents
、adrFormatAddress
、allowsDogs
、attributions
、businessStatus
、displayName
、editorialSummary
、editorialSummaryLanguageCode
、formattedAddress
、googleMapsURI
、hasCurbsidePickup
、hasDelivery
、hasDineIn
、hasLiveMusic
、hasMenuForChildren
、hasOutdoorSeating
、hasRestroom
、hasTakeout
hasWiFi
iconBackgroundColor
id
internationalPhoneNumber
isGoodForChildren
isGoodForGroups
isGoodForWatchingSports
isReservable
location
nationalPhoneNumber
parkingOptions
paymentOptions
photos
plusCode
priceLevel
rating
regularOpeningHours
requestedLanguage
requestedRegion
reviews
servesBeer
servesBreakfast
servesBrunch
servesCocktails
servesCoffee
servesDessert
servesDinner
servesLunch
servesVegetarianFood
servesWine
svgIconMaskURI
types
userRatingCount
utcOffsetMinutes
viewport
websiteURI
openingHours - PlaceOptions 接口
- AccessibilityOptions 类
-
属性:
hasWheelchairAccessibleEntrance
、hasWheelchairAccessibleParking
、hasWheelchairAccessibleRestroom
、hasWheelchairAccessibleSeating
- AddressComponent 类
- 归因类别
- FetchFieldsRequest 接口
-
属性:
fields
- OpeningHours 课程
- OpeningHoursPeriod 类
- OpeningHoursPoint 类
- ParkingOptions 类
-
属性:
hasFreeGarageParking
、hasFreeParkingLot
、hasFreeStreetParking
、hasPaidGarageParking
、hasPaidParkingLot
、hasPaidStreetParking
、hasValetParking
- PaymentOptions 类
-
属性:
acceptsCashOnly
、acceptsCreditCards
、acceptsDebitCards
、acceptsNFC
- 照片类
-
属性:
authorAttributions
、heightPx
、widthPx
方法:
getURI
- AuthorAttribution 类
- PlusCode 类
- 查看课程
-
属性:
authorAttribution
、publishTime
、rating
、relativePublishTimeDescription
、text
、textLanguageCode
- PriceLevel 常量
- SearchByTextRequest 接口
-
属性:
fields
、includedType
、isOpenNow
、language
、locationBias
、locationRestriction
、maxResultCount
、minRating
、priceLevels
、rankPreference
、region
、textQuery
、useStrictTypeFiltering
、
、queryrankBy - SearchByTextRankPreference 常量
- SearchNearbyRequest 接口
-
属性:
excludedPrimaryTypes
、fields
、includedPrimaryTypes
、includedTypes
、language
、locationRestriction
、maxResultCount
、rankPreference
、region
- SearchNearbyRankPreference 常量
地点自动补全服务
- AutocompleteService 类
- AutocompletionRequest 接口
-
属性:
componentRestrictions
、input
、language
、locationBias
、locationRestriction
、offset
、origin
、region
、sessionToken
、types
、
、bounds
、locationradius - AutocompleteResponse 界面
-
属性:
predictions
- QueryAutocompletionRequest 接口
- AutocompleteSessionToken 类
- ComponentRestrictions 接口
-
属性:
country
- AutocompletePrediction 界面
-
属性:
description
、distance_meters
、matched_substrings
、place_id
、structured_formatting
、terms
、types
- QueryAutocompletePrediction 界面
- PredictionTerm 接口
- PredictionSubstring 接口
- StructuredFormat 接口
地理编码器
- 地理编码器类
-
方法:
geocode
- GeocoderRequest 接口
-
属性:
address
、bounds
、componentRestrictions
、language
、location
、placeId
、region
- GeocoderComponentRestrictions 界面
- GeocoderStatus 常量
-
常量:
ERROR
、INVALID_REQUEST
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- GeocoderResponse 接口
-
属性:
results
- GeocoderResult 接口
-
属性:
address_components
、formatted_address
、geometry
、partial_match
、place_id
、plus_code
、postcode_localities
、types
- GeocoderAddressComponent 接口
- GeocoderGeometry 界面
- GeocoderLocationType 常量
地点服务
- PlacesService 类
-
方法:
findPlaceFromPhoneNumber
、findPlaceFromQuery
、getDetails
、nearbySearch
、textSearch
- PlaceDetailsRequest 接口
- FindPlaceFromPhoneNumberRequest 接口
- FindPlaceFromQueryRequest 接口
- PlaceSearchRequest 接口
-
属性:
bounds
、keyword
、language
、location
、maxPriceLevel
、minPriceLevel
、openNow
、radius
、rankBy
、type
、name - TextSearchRequest 接口
- RankBy 常量
- 位置偏向类型定义
- LocationRestriction typedef
- PlacesServiceStatus 常量
-
常量:
INVALID_REQUEST
、NOT_FOUND
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- PlaceSearchPagination 接口
-
属性:
hasNextPage
方法:
nextPage
- PlaceResult 接口
-
属性:
address_components
、adr_address
、aspects
、business_status
、formatted_address
、formatted_phone_number
、geometry
、html_attributions
、icon
、icon_background_color
、icon_mask_base_uri
、international_phone_number
、name
、opening_hours
、photos
、place_id
、plus_code
、price_level
、rating
、rating
、rating
reviews
types
url
user_ratings_total
utc_offset_minutes
vicinity
website
utc_offsetpermanently_closed PlaceAspectRating 接口- BusinessStatus 常量
- PlaceGeometry 界面
- PlaceOpeningHours 界面
-
属性:
periods
、weekday_text
、open_now方法:
isOpen
- PlaceOpeningHoursPeriod 界面
- PlaceOpeningHoursTime 接口
- PlacePlusCode 接口
- PlacePhoto 界面
-
属性:
height
、html_attributions
、width
方法:
getUrl
- PhotoOptions 接口
- PlaceReview 界面
-
属性:
author_name
、author_url
、language
、profile_photo_url
、rating
、relative_time_description
、text
、time
、aspects
路由
路线
- DirectionsService 类
-
方法:
route
- DirectionsRequest 接口
-
属性:
avoidFerries
、avoidHighways
、avoidTolls
、destination
、drivingOptions
、language
、optimizeWaypoints
、origin
、provideRouteAlternatives
、region
、transitOptions
、travelMode
、unitSystem
、waypoints
- DirectionsStatus 常量
-
常量:
INVALID_REQUEST
、MAX_WAYPOINTS_EXCEEDED
、NOT_FOUND
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- DirectionsResult 接口
- DirectionsRenderer 类
-
方法:
getDirections
、getMap
、getPanel
、getRouteIndex
、setDirections
、setMap
、setOptions
、setPanel
、setRouteIndex
- DirectionsRendererOptions 接口
-
属性:
directions
、draggable
、hideRouteList
、infoWindow
、map
、markerOptions
、panel
、polylineOptions
、preserveViewport
、routeIndex
、suppressBicyclingLayer
、suppressInfoWindows
、suppressMarkers
、suppressPolylines
- DirectionsWaypoint 接口
- DirectionsGeocodedWaypoint 接口
- DirectionsRoute 接口
-
属性:
bounds
、copyrights
、fare
、legs
、overview_path
、overview_polyline
、summary
、warnings
、waypoint_order
- DirectionsLeg 接口
-
属性:
arrival_time
、departure_time
、distance
、duration
、duration_in_traffic
、end_address
、end_location
、start_address
、start_location
、steps
、via_waypoints
、traffic_speed_entry - DirectionsStep 界面
-
属性:
distance
、duration
、encoded_lat_lngs
、end_location
、instructions
、maneuver
、path
、start_location
、steps
、transit
、transit_details
、travel_mode
、
、start_point
、end_point
、lat_lngspolyline - DirectionsPolygon 界面
-
属性:
points
- Place 接口
- TravelMode 常量
- DrivingOptions 接口
- TrafficModel 常量
- TransitOptions 接口
- TransitMode 常量
- TransitRoutePreference 常量
- TransitFare 接口
- TransitDetails 接口
-
属性:
arrival_stop
、arrival_time
、departure_stop
、departure_time
、headsign
、headway
、line
、num_stops
、trip_short_name
- TransitStop 接口
- TransitLine 接口
-
属性:
agencies
、color
、icon
、name
、short_name
、text_color
、url
、vehicle
- TransitAgency 界面
- TransitVehicle 界面
-
属性:
icon
、local_icon
、name
、type
- VehicleType 常量
-
常量:
BUS
、CABLE_CAR
、COMMUTER_TRAIN
、FERRY
、FUNICULAR
、GONDOLA_LIFT
、HEAVY_RAIL
、HIGH_SPEED_TRAIN
、INTERCITY_BUS
、METRO_RAIL
、MONORAIL
、OTHER
、RAIL
、SHARE_TAXI
、SUBWAY
、TRAM
、TROLLEYBUS
- UnitSystem 常量
- 距离界面
- Duration 接口
- 时间界面
DirectionsTravelMode 常量DirectionsUnitSystem 常量
距离矩阵
- DistanceMatrixService 类
- DistanceMatrixRequest 接口
-
属性:
avoidFerries
、avoidHighways
、avoidTolls
、destinations
、drivingOptions
、language
、origins
、region
、transitOptions
、travelMode
、unitSystem
- DistanceMatrixResponse 接口
- DistanceMatrixResponseRow 接口
-
属性:
elements
- DistanceMatrixResponseElement 接口
- DistanceMatrixStatus 常量
-
常量:
INVALID_REQUEST
、MAX_DIMENSIONS_EXCEEDED
、MAX_ELEMENTS_EXCEEDED
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
- DistanceMatrixElementStatus 常量
海拔
- ElevationService 类
- LocationElevationRequest 接口
-
属性:
locations
- LocationElevationResponse 接口
-
属性:
results
- PathElevationRequest 接口
- PathElevationResponse 接口
-
属性:
results
- ElevationResult 接口
- ElevationStatus 常量
-
常量:
INVALID_REQUEST
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
旅程分享
地图视图
- JourneySharingMapView 类
-
属性:
automaticViewportMode
、element
、enableTraffic
、locationProviders
、map
、mapOptions
、
、locationProvider
、destinationMarkerSetup
、originMarkerSetup
、taskOutcomeMarkerSetup
、unsuccessfulTaskMarkerSetup
、vehicleMarkerSetup
、waypointMarkerSetup
、anticipatedRoutePolylineSetup
、takenRoutePolylineSetup
、pingMarkerSetup
、successfulTaskMarkerSetup
、destinationMarkers
、originMarkers
、originMarkersoriginMarkerssuccessfulTaskMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkersanticipatedRoutePolylinestakenRoutePolylines - JourneySharingMapViewOptions 界面
-
属性:
automaticViewportMode
、element
、locationProviders
、mapOptions
、
、locationProvider
、destinationMarkerSetup
、originMarkerSetup
、taskOutcomeMarkerSetup
、unsuccessfulTaskMarkerSetup
、vehicleMarkerSetup
、waypointMarkerSetup
、anticipatedRoutePolylineSetup
、takenRoutePolylineSetup
、pingMarkerSetupsuccessfulTaskMarkerSetup - AutomaticViewportMode 常量
- LocationProvider 抽象类
-
方法:
addListener
- PollingLocationProvider 抽象类
-
属性:
isPolling
、pollingIntervalMillis
事件:
ispollingchange
- PollingLocationProviderIsPollingChangeEvent 接口
-
属性:
error
身份验证
- AuthToken 接口
- AuthTokenContext 接口
- AuthTokenFetcher typedef
- AuthTokenFetcherOptions 接口
- FleetEngineServiceType 常量
-
常量:
DELIVERY_VEHICLE_SERVICE
、TASK_SERVICE
、TRIP_SERVICE
、UNKNOWN_SERVICE
界面自定义
PolygonSetup typedefPolygonSetupOptions 界面DefaultPolygonSetupOptions 界面MarkerSetup 类型定义符MarkerSetupOptions 接口DefaultMarkerSetupOptions 接口- MarkerCustomizationFunctionParams 接口
- DeliveryVehicleMarkerCustomizationFunctionParams 接口
-
属性:
vehicle
- PlannedStopMarkerCustomizationFunctionParams 接口
-
属性:
stopIndex
- TaskMarkerCustomizationFunctionParams 接口
-
属性:
task
- ShipmentMarkerCustomizationFunctionParams 接口
- TripMarkerCustomizationFunctionParams 接口
-
属性:
trip
- TripWaypointMarkerCustomizationFunctionParams 接口
- VehicleMarkerCustomizationFunctionParams 接口
-
属性:
vehicle
- VehicleWaypointMarkerCustomizationFunctionParams 接口
- PolygonCustomizationFunctionParams 接口
- ShipmentPolygonCustomizationFunctionParams 接口
- TripPolygonCustomizationFunctionParams 接口
-
属性:
trip
- VehiclePolygonCustomizationFunctionParams 接口
-
属性:
vehicle
- DeliveryVehiclePolygonCustomizationFunctionParams 接口
Fleet Engine 实体
- 任务界面
-
属性:
attributes
、estimatedCompletionTime
、latestVehicleLocationUpdate
、name
、outcome
、outcomeLocation
、outcomeLocationSource
、outcomeTime
、plannedLocation
、remainingVehicleJourneySegments
、status
、targetTimeWindow
、trackingId
、type
、vehicleId
- TaskInfo 接口
- TaskTrackingInfo 界面
-
属性:
attributes
、estimatedArrivalTime
、estimatedTaskCompletionTime
、latestVehicleLocationUpdate
、name
、plannedLocation
、remainingDrivingDistanceMeters
、remainingStopCount
、routePolylinePoints
、state
、targetTimeWindow
、taskOutcome
、taskOutcomeTime
、trackingId
- 行程界面
-
属性:
actualDropOffLocation
、actualPickupLocation
、dropOffTime
、latestVehicleLocationUpdate
、name
、passengerCount
、pickupTime
、plannedDropOffLocation
、plannedPickupLocation
、remainingWaypoints
、status
、type
、vehicleId
- DeliveryVehicle 界面
-
属性:
attributes
、currentRouteSegmentEndPoint
、latestVehicleLocationUpdate
、name
、navigationStatus
、remainingDistanceMeters
、remainingDurationMillis
、remainingVehicleJourneySegments
- DeliveryVehicleStop 接口
- DeliveryVehicleStopState 常量
- VehicleJourneySegment 界面
- VehicleLocationUpdate 接口
- VehicleWaypoint 接口
-
属性:
distanceMeters
、durationMillis
、location
、path
、speedReadingIntervals
- 车载界面
-
属性:
attributes
、currentRouteSegmentEndPoint
、currentRouteSegmentVersion
、currentTrips
、etaToFirstWaypoint
、latestLocation
、maximumCapacity
、name
、navigationStatus
、remainingDistanceMeters
、supportedTripTypes
、vehicleState
、vehicleType
、waypoints
、waypointsVersion
-
常量:
ARRIVED_AT_DESTINATION
、ENROUTE_TO_DESTINATION
、NO_GUIDANCE
、OFF_ROUTE
、UNKNOWN_NAVIGATION_STATUS
- VehicleState 常量
- VehicleType 常量
- TripType 常量
- TripWaypoint 接口
-
属性:
distanceMeters
、durationMillis
、location
、path
、speedReadingIntervals
、tripId
、waypointType
- WaypointType 常量
-
常量:
DROP_OFF_WAYPOINT_TYPE
、INTERMEDIATE_DESTINATION_WAYPOINT_TYPE
、PICKUP_WAYPOINT_TYPE
、UNKNOWN_WAYPOINT_TYPE
- TimeWindow 接口
- 速度常量
- SpeedReadingInterval 接口
行程和订单进度
- FleetEngineTripLocationProvider 类
-
静态方法:
TRAFFIC_AWARE_ACTIVE_POLYLINE_CUSTOMIZATION_FUNCTION
、TRAFFIC_AWARE_REMAINING_POLYLINE_CUSTOMIZATION_FUNCTION
属性:
tripId
方法:
refresh
- FleetEngineTripLocationProviderOptions 接口
-
属性:
activePolylineCustomization
、authTokenFetcher
、destinationMarkerCustomization
、originMarkerCustomization
、pollingIntervalMillis
、projectId
、remainingPolylineCustomization
、takenPolylineCustomization
、tripId
、vehicleMarkerCustomization
、waypointMarkerCustomization
- FleetEngineTripLocationProviderUpdateEvent 接口
-
属性:
trip
车队跟踪 - 最后一公里车队
- FleetEngineDeliveryVehicleLocationProvider 类
-
属性:
deliveryVehicleId
、shouldShowOutcomeLocations
、shouldShowTasks
、staleLocationThresholdMillis
、taskFilterOptions
- FleetEngineDeliveryVehicleLocationProviderOptions 接口
-
属性:
activePolylineCustomization
、authTokenFetcher
、deliveryVehicleId
、deliveryVehicleMarkerCustomization
、plannedStopMarkerCustomization
、pollingIntervalMillis
、projectId
、remainingPolylineCustomization
、shouldShowOutcomeLocations
、shouldShowTasks
、staleLocationThresholdMillis
、takenPolylineCustomization
、taskFilterOptions
、taskMarkerCustomization
、taskOutcomeMarkerCustomization
- FleetEngineTaskFilterOptions 接口
- FleetEngineDeliveryVehicleLocationProviderUpdateEvent 接口
- FleetEngineDeliveryFleetLocationProvider 类
-
属性:
deliveryVehicleFilter
、locationRestriction
、staleLocationThresholdMillis
事件:
update
- FleetEngineDeliveryFleetLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleFilter
、deliveryVehicleMarkerCustomization
、locationRestriction
、projectId
、staleLocationThresholdMillis
- FleetEngineDeliveryFleetLocationProviderUpdateEvent 接口
车队跟踪 - 按需乘车和送货(Beta 版)
- FleetEngineVehicleLocationProvider 类
-
静态方法:
TRAFFIC_AWARE_ACTIVE_POLYLINE_CUSTOMIZATION_FUNCTION
、TRAFFIC_AWARE_REMAINING_POLYLINE_CUSTOMIZATION_FUNCTION
- FleetEngineVehicleLocationProviderOptions 接口
-
属性:
activePolylineCustomization
、authTokenFetcher
、destinationMarkerCustomization
、intermediateDestinationMarkerCustomization
、originMarkerCustomization
、pollingIntervalMillis
、projectId
、remainingPolylineCustomization
、staleLocationThresholdMillis
、takenPolylineCustomization
、vehicleId
、vehicleMarkerCustomization
- FleetEngineVehicleLocationProviderUpdateEvent 接口
- FleetEngineFleetLocationProvider 类
-
属性:
locationRestriction
、staleLocationThresholdMillis
、vehicleFilter
事件:
update
- FleetEngineFleetLocationProviderOptions 接口
-
属性:
authTokenFetcher
、locationRestriction
、projectId
、staleLocationThresholdMillis
、vehicleFilter
、vehicleMarkerCustomization
- FleetEngineFleetLocationProviderUpdateEvent 接口
-
属性:
vehicles
物流跟踪
- FleetEngineShipmentLocationProvider 类
-
属性:
trackingId
方法:
refresh
- FleetEngineShipmentLocationProviderOptions 接口
-
属性:
activePolylineCustomization
、authTokenFetcher
、deliveryVehicleMarkerCustomization
、destinationMarkerCustomization
、pollingIntervalMillis
、projectId
、remainingPolylineCustomization
、takenPolylineCustomization
、trackingId
- FleetEngineShipmentLocationProviderUpdateEvent 接口
3D 地图(Alpha 版)
3D 地图
- Map3DElement 类
-
属性:
bounds
、center
、defaultLabelsDisabled
、heading
、maxAltitude
、maxHeading
、maxTilt
、minAltitude
、minHeading
、minTilt
、range
、roll
、tilt
方法:
addEventListener
、removeEventListener
事件:
gmp-centerchange
、gmp-click
、gmp-headingchange
、gmp-rangechange
、gmp-rollchange
、gmp-steadychange
、gmp-tiltchange
- Map3DElementOptions 接口
-
属性:
bounds
、center
、defaultLabelsDisabled
、heading
、maxAltitude
、maxHeading
、maxTilt
、minAltitude
、minHeading
、minTilt
、range
、roll
、tilt
- SteadyChangeEvent 类
-
属性:
isSteady
- ClickEvent 类
-
属性:
position
- CenterChangeEvent 类
- HeadingChangeEvent 类
- RangeChangeEvent 类
- RollChangeEvent 类
- TiltChangeEvent 类
- Polygon3DElement 类
-
属性:
altitudeMode
、coordinates
、drawsOccludedSegments
、extruded
、geodesic
、outerColor
、outerOpacity
、outerWidth
、strokeColor
、strokeOpacity
、strokeWidth
、zIndex
- Polygon3DElementOptions 接口
-
属性:
altitudeMode
、coordinates
、drawsOccludedSegments
、extruded
、geodesic
、outerColor
、outerOpacity
、outerWidth
、strokeColor
、strokeOpacity
、strokeWidth
、zIndex
- Polygon3DElement 类
-
属性:
altitudeMode
、drawsOccludedSegments
、extruded
、fillColor
、fillOpacity
、geodesic
、innerCoordinates
、outerCoordinates
、strokeColor
、strokeOpacity
、strokeWidth
、zIndex
- Polygon3DElementOptions 接口
-
属性:
altitudeMode
、drawsOccludedSegments
、extruded
、fillColor
、fillOpacity
、geodesic
、innerCoordinates
、outerCoordinates
、strokeColor
、strokeOpacity
、strokeWidth
、zIndex
- AltitudeMode 常量
-
常量:
ABSOLUTE
、CLAMP_TO_GROUND
、RELATIVE_TO_GROUND
、RELATIVE_TO_MESH
Local Context(Beta 版)
地图视图
LocalContextMapView 类-
属性:
directionsOptions
、element
、isTransitioningMapBounds
、locationBias
、locationRestriction
、maxPlaceCount
、placeTypePreferences
方法:
addListener
、hidePlaceDetailsView
、search
事件:
error
、placedetailsviewhidestart
、placedetailsviewshowstart
- LocalContextMapViewOptions 接口
-
属性:
directionsOptions
、element
、locationBias
、locationRestriction
、map
、maxPlaceCount
、pinOptionsSetup
、placeChooserViewSetup
、placeDetailsViewSetup
、placeTypePreferences
- PlaceTypePreference typedef
- MapDirectionsOptions 类
-
方法:
addListener
- MapDirectionsOptionsLiteral 接口
-
属性:
origin
- PinOptions 接口
- PlaceChooserViewSetupOptions 界面
- PlaceChooserLayoutMode 常量
- PlaceChooserPosition 常量
- PlaceDetailsViewSetupOptions 界面
- PlaceDetailsLayoutMode 常量
-
常量:
INFO_WINDOW
、SHEET
- PlaceDetailsPosition 常量
库接口
库接口
- CoreLibrary 接口
-
属性:
ControlPosition
、event
、LatLng
、LatLngAltitude
、LatLngBounds
、MapsNetworkError
、MapsNetworkErrorEndpoint
、MapsRequestError
、MapsServerError
、MVCArray
、MVCObject
、Point
、Settings
、Size
、SymbolPath
、UnitSystem
- MapsLibrary 接口
-
属性:
BicyclingLayer
、Circle
、Data
、FeatureType
、GroundOverlay
、ImageMapType
、InfoWindow
、KmlLayer
、KmlLayerStatus
、Map
、MapTypeControlStyle
、MapTypeId
、MapTypeRegistry
、MaxZoomService
、MaxZoomStatus
、OverlayView
、Polygon
、Polyline
、Rectangle
、Rectangle
、Rectangle
RenderingType
StrokePosition
StyledMapType
TrafficLayer
TransitLayer
WebGLOverlayView
ZoomChangeEvent
- Maps3DLibrary 接口
-
属性:
AltitudeMode
、CenterChangeEvent
、ClickEvent
、HeadingChangeEvent
、Map3DElement
、Polygon3DElement
、Polyline3DElement
、RangeChangeEvent
、RollChangeEvent
、SteadyChangeEvent
、TiltChangeEvent
- PlacesLibrary 接口
-
属性:
AccessibilityOptions
、AddressComponent
、Attribution
、AuthorAttribution
、Autocomplete
、AutocompleteService
、AutocompleteSessionToken
、BusinessStatus
、OpeningHours
、OpeningHoursPeriod
、OpeningHoursPoint
、ParkingOptions
、PaymentOptions
、Photo
、Place
、PlacesService
、PlacesServiceStatus
、PlusCode
、PriceLevel
、PriceLevel
、PriceLevel
RankBy
Review
SearchBox
SearchByTextRankPreference
SearchNearbyRankPreference
- GeocodingLibrary 接口
- RoutesLibrary 接口
-
属性:
DirectionsRenderer
、DirectionsService
、DirectionsStatus
、DistanceMatrixElementStatus
、DistanceMatrixService
、DistanceMatrixStatus
、TrafficModel
、TransitMode
、TransitRoutePreference
、TravelMode
、VehicleType
- MarkerLibrary 接口
-
属性:
AdvancedMarkerClickEvent
、AdvancedMarkerElement
、Animation
、CollisionBehavior
、Marker
、PinElement
- GeometryLibrary 接口
- ElevationLibrary 界面
- StreetViewLibrary 界面
-
属性:
InfoWindow
、OverlayView
、StreetViewCoverageLayer
、StreetViewPanorama
、StreetViewPreference
、StreetViewService
、StreetViewSource
、StreetViewStatus
- JourneySharingLibrary 接口
-
属性:
AutomaticViewportMode
、DeliveryVehicleStopState
、FleetEngineDeliveryFleetLocationProvider
、FleetEngineDeliveryVehicleLocationProvider
、FleetEngineFleetLocationProvider
、FleetEngineServiceType
、FleetEngineShipmentLocationProvider
、FleetEngineTripLocationProvider
、FleetEngineVehicleLocationProvider
、JourneySharingMapView
、Speed
、TripType
、VehicleNavigationStatus
、VehicleState
、VehicleType
、WaypointType
- DrawingLibrary 界面
- VisualizationLibrary 接口
-
属性:
HeatmapLayer