Creates an instance of Loader using [[LoaderOptions]]. No defaults are set using this library, instead the defaults are set by the Google Maps JavaScript API server.
const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
Readonly
apiSee [[LoaderOptions.apiKey]]
Readonly
authSee [[LoaderOptions.authReferrerPolicy]]
Readonly
channelSee [[LoaderOptions.channel]]
Readonly
clientSee [[LoaderOptions.client]]
Readonly
idSee [[LoaderOptions.id]]
Readonly
languageSee [[LoaderOptions.language]]
Readonly
librariesSee [[LoaderOptions.libraries]]
Readonly
mapSee [[LoaderOptions.mapIds]]
Readonly
nonceSee [[LoaderOptions.nonce]]
Readonly
regionSee [[LoaderOptions.region]]
Readonly
retriesSee [[LoaderOptions.retries]]
Readonly
urlSee [[LoaderOptions.url]]
Readonly
versionSee [[LoaderOptions.version]]
[[Loader]] makes it easier to add Google Maps JavaScript API to your application dynamically using Promises. It works by dynamically creating and appending a script node to the the document head and wrapping the callback function so as to return a promise.