google.maps

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

google.maps 命名空间

google.maps命名空间

importLibrary
importLibrary(libraryName)
参数
  • libraryNamestring
加载 Maps JavaScript API 的,通过该 API 的直接成员进行解析(无命名空间)。(加载时,库还会将自己添加到全局 google.maps 命名空间中,但通常不建议使用全局命名空间。)
version 浏览器加载的 Google Maps JavaScript API 版本。请参阅 https://developers.google.com/maps/documentation/javascript/versions

CoreLibrary 接口

google.maps.CoreLibrary接口

ControlPosition
类型typeof ControlPosition
event
类型typeof event
LatLng
类型typeof LatLng
LatLngAltitude
类型typeof LatLngAltitude
LatLngBounds
类型typeof LatLngBounds
MapsNetworkError
类型typeof MapsNetworkError
MapsNetworkErrorEndpoint
类型typeof MapsNetworkErrorEndpoint
MapsRequestError
类型typeof MapsRequestError
MapsServerError
类型typeof MapsServerError
MVCArray
类型typeof MVCArray
MVCObject
类型typeof MVCObject
Point
类型typeof Point
Settings
类型typeof Settings
Size
类型typeof Size
SymbolPath
类型typeof SymbolPath
UnitSystem
类型typeof UnitSystem

MapsLibrary接口

google.maps.MapsLibrary接口

BicyclingLayer
类型typeof BicyclingLayer
Circle
类型typeof Circle
Data
类型typeof Data
FeatureType
类型typeof FeatureType
GroundOverlay
类型typeof GroundOverlay
ImageMapType
类型typeof ImageMapType
InfoWindow
类型typeof InfoWindow
KmlLayer
类型typeof KmlLayer
KmlLayerStatus
类型typeof KmlLayerStatus
Map
类型typeof Map
MapTypeControlStyle
类型typeof MapTypeControlStyle
MapTypeId
类型typeof MapTypeId
MapTypeRegistry
类型typeof MapTypeRegistry
MaxZoomService
类型typeof MaxZoomService
MaxZoomStatus
类型typeof MaxZoomStatus
OverlayView
类型typeof OverlayView
Polygon
类型typeof Polygon
Polyline
类型typeof Polyline
Rectangle
类型typeof Rectangle
RenderingType
类型typeof RenderingType
StrokePosition
类型typeof StrokePosition
StyledMapType
类型typeof StyledMapType
TrafficLayer
类型typeof TrafficLayer
TransitLayer
类型typeof TransitLayer
WebGLOverlayView
类型typeof WebGLOverlayView

PlacesLibrary 接口

google.maps.PlacesLibrary接口

AddressComponent
类型typeof AddressComponent
Attribution
类型typeof Attribution
Autocomplete
类型typeof Autocomplete
AutocompleteService
类型typeof AutocompleteService
AutocompleteSessionToken
类型typeof AutocompleteSessionToken
BusinessStatus
类型typeof BusinessStatus
OpeningHours
类型typeof OpeningHours
OpeningHoursPeriod
类型typeof OpeningHoursPeriod
OpeningHoursPoint
类型typeof OpeningHoursPoint
Photo
类型typeof Photo
PhotoAttribution
类型typeof PhotoAttribution
Place
类型typeof Place
PlacesService
类型typeof PlacesService
PlacesServiceStatus
类型typeof PlacesServiceStatus
PlusCode
类型typeof PlusCode
RankBy
类型typeof RankBy
Review
类型typeof Review
SearchBox
类型typeof SearchBox

GeocodingLibrary 界面

google.maps.GeocodingLibrary接口

Geocoder
类型typeof Geocoder
GeocoderLocationType
类型typeof GeocoderLocationType
GeocoderStatus
类型typeof GeocoderStatus

MarkerLibrary 接口

google.maps.MarkerLibrary接口

AdvancedMarkerView
类型typeof AdvancedMarkerView
Animation
类型typeof Animation
CollisionBehavior
类型typeof CollisionBehavior
Marker
类型typeof Marker
PinView
类型typeof PinView

GeometryLibrary 接口

google.maps.GeometryLibrary接口

encoding
类型typeof encoding
poly
类型typeof poly
spherical
类型typeof spherical

ElevationLibrary 接口

google.maps.ElevationLibrary接口

ElevationService
类型typeof ElevationService
ElevationStatus
类型typeof ElevationStatus

StreetViewLibrary接口

google.maps.StreetViewLibrary接口

InfoWindow
类型typeof InfoWindow
OverlayView
类型typeof OverlayView
StreetViewCoverageLayer
类型typeof StreetViewCoverageLayer
StreetViewPanorama
类型typeof StreetViewPanorama
StreetViewPreference
类型typeof StreetViewPreference
StreetViewService
类型typeof StreetViewService
StreetViewSource
类型typeof StreetViewSource
StreetViewStatus
类型typeof StreetViewStatus

DrawingLibrary 界面

google.maps.DrawingLibrary接口

DrawingManager
类型typeof DrawingManager
OverlayType
类型typeof OverlayType

VisualizationLibrary 接口

google.maps.VisualizationLibrary接口

HeatmapLayer
类型typeof HeatmapLayer