<iframe src="https://developers.devsite.google/frame/maps/documentation/javascript/reference/top-level_e3d2b89b28e204e08edcd8b6e834cb3b579855a83b639245f4d82ee4b77df795.frame" class="framebox inherit-locale redirect-iframe" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## [google.maps](https://developers.google.com/maps/documentation/javascript/reference/top-level.md.txt#google.maps)
namespace


namespace
`google.maps`

| ### Constants ||
|---|---|
| `version` | Google Maps JavaScript API version loaded by the browser. See <https://developers.google.com/maps/documentation/javascript/versions> |

| ### Static Methods ||
|---|---|
| `importLibrary` | `importLibrary(libraryName)` **Parameters:** - `libraryName: string` **Return Value:** `Promise<CoreLibrary|MapsLibrary|Maps3DLibrary|PlacesLibrary|GeocodingLibrary|RoutesLibrary|MarkerLibrary|GeometryLibrary|ElevationLibrary|StreetViewLibrary|JourneySharingLibrary|DrawingLibrary|VisualizationLibrary>` Loads a [library](https://developers.google.com/maps/documentation/javascript/libraries.md.txt) 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.) |