google.maps
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
google.maps
命名空间
静态方法 |
importLibrary |
importLibrary(libraryName)
加载 Maps JavaScript API 的 库,并使用该 API 的直接成员进行解析(不使用命名空间)。(加载时,库还会将自己添加到全局 google.maps 命名空间,但通常不建议使用全局命名空间。) |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-22。
[null,null,["最后更新时间 (UTC):2024-12-22。"],[],[],null,["# google.maps\n\nThe documentation for has moved to a different page.\n\nThe documentation for the linked item could not be found. \n\n[google.maps](#google.maps)\nnamespace\n-------------------------------------\n\n\ngoogle.maps\nnamespace\n\n| ### Constants ||\n|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [version](#google.maps.version) | Google Maps JavaScript API version loaded by the browser. See \u003chttps://developers.google.com/maps/documentation/javascript/versions\u003e |\n\n| ### Static Methods ||\n|---------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [importLibrary](#google.maps.importLibrary) | `importLibrary(libraryName)` **Parameters:** - `libraryName`: `string` **Return Value:** [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)`\u003c`[CoreLibrary](/maps/documentation/javascript/reference/library-interfaces#CoreLibrary)`|`[MapsLibrary](/maps/documentation/javascript/reference/library-interfaces#MapsLibrary)`|`[Maps3DLibrary](/maps/documentation/javascript/reference/library-interfaces#Maps3DLibrary)`|`[PlacesLibrary](/maps/documentation/javascript/reference/library-interfaces#PlacesLibrary)`|`[GeocodingLibrary](/maps/documentation/javascript/reference/library-interfaces#GeocodingLibrary)`|`[RoutesLibrary](/maps/documentation/javascript/reference/library-interfaces#RoutesLibrary)`|`[MarkerLibrary](/maps/documentation/javascript/reference/library-interfaces#MarkerLibrary)`|`[GeometryLibrary](/maps/documentation/javascript/reference/library-interfaces#GeometryLibrary)`|`[ElevationLibrary](/maps/documentation/javascript/reference/library-interfaces#ElevationLibrary)`|`[StreetViewLibrary](/maps/documentation/javascript/reference/library-interfaces#StreetViewLibrary)`|`[JourneySharingLibrary](/maps/documentation/javascript/reference/library-interfaces#JourneySharingLibrary)`|`[DrawingLibrary](/maps/documentation/javascript/reference/library-interfaces#DrawingLibrary)`|`[VisualizationLibrary](/maps/documentation/javascript/reference/library-interfaces#VisualizationLibrary)`\u003e` Loads a [library](https://developers.google.com/maps/documentation/javascript/libraries) of the Maps JavaScript API, resolving with the direct members of that API (without namespacing). (When loaded, libraries also add themselves to the global `google.maps` namespace, though using the global namespace is not generally recommended.) |"]]