google.maps

google.maps 命名空间

google.maps 命名空间

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

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
BetaZoomChangeEvent
类型typeof ZoomChangeEvent

PlacesLibrary 接口

google.maps.PlacesLibrary 接口

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

GeocodingLibrary 接口

google.maps.GeocodingLibrary 接口

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

MarkerLibrary 接口

google.maps.MarkerLibrary 接口

AdvancedMarkerClickEvent
类型typeof AdvancedMarkerClickEvent
AdvancedMarkerElement
类型typeof AdvancedMarkerElement
Animation
类型typeof Animation
CollisionBehavior
类型typeof CollisionBehavior
Marker
类型typeof Marker
PinElement
类型typeof PinElement

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

JourneySharingLibrary 接口

google.maps.JourneySharingLibrary 接口

AutomaticViewportMode
类型typeof AutomaticViewportMode
DeliveryVehicleStopState
类型typeof DeliveryVehicleStopState
FleetEngineDeliveryFleetLocationProvider
FleetEngineDeliveryVehicleLocationProvider
FleetEngineFleetLocationProvider
FleetEngineServiceType
类型typeof FleetEngineServiceType
FleetEngineShipmentLocationProvider
FleetEngineTripLocationProvider
FleetEngineVehicleLocationProvider
JourneySharingMapView
类型typeof JourneySharingMapView
Speed
类型typeof Speed
TripType
类型typeof TripType
VehicleNavigationStatus
类型typeof VehicleNavigationStatus
VehicleState
类型typeof VehicleState
VehicleType
类型typeof VehicleType
WaypointType
类型typeof WaypointType

DrawingLibrary 接口

google.maps.DrawingLibrary 接口

DrawingManager
类型typeof DrawingManager
OverlayType
类型typeof OverlayType

VisualizationLibrary 接口

google.maps.VisualizationLibrary 接口

HeatmapLayer
类型typeof HeatmapLayer