google.maps
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
google.maps
命名空間
靜態方法 |
importLibrary |
importLibrary(libraryName)
載入 Maps JavaScript API 的 程式庫,並使用該 API 的直接成員進行解析 (不含命名空間)。(載入時,程式庫也會將自己加入全域 google.maps 命名空間,但一般不建議使用全域命名空間)。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-22 (世界標準時間)。
[null,null,["上次更新時間: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.) |"]]