google.maps
Stay organized with collections
Save and categorize content based on your preferences.
google.maps
namespace
Static Methods |
importLibrary |
importLibrary(libraryName)
Loads a library 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.) |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["[google.maps](#google.maps)\nnamespace\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/3.60/library-interfaces#CoreLibrary)`|`[MapsLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#MapsLibrary)`|`[Maps3DLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#Maps3DLibrary)`|`[PlacesLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#PlacesLibrary)`|`[GeocodingLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#GeocodingLibrary)`|`[RoutesLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#RoutesLibrary)`|`[MarkerLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#MarkerLibrary)`|`[GeometryLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#GeometryLibrary)`|`[ElevationLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#ElevationLibrary)`|`[StreetViewLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#StreetViewLibrary)`|`[JourneySharingLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#JourneySharingLibrary)`|`[DrawingLibrary](/maps/documentation/javascript/reference/3.60/library-interfaces#DrawingLibrary)`|`[VisualizationLibrary](/maps/documentation/javascript/reference/3.60/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.) |"]]