Charge une bibliothèque de l'API Maps JavaScript, en résolvant avec les membres directs de cette API (sans espace de noms). (Lors du chargement, les bibliothèques s'ajoutent également à l'espace de noms google.maps global, bien que l'utilisation de l'espace de noms global ne soit généralement pas recommandée.)
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/12/22 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/12/22 (UTC)."],[],[],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.) |"]]