{"_id":"@googlemaps/map-loader","_rev":"10-8edc7b602b7db040a882f221495d9fac","name":"@googlemaps/map-loader","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@googlemaps/map-loader","version":"0.1.0","keywords":["google","maps"],"author":{"name":"Alex Muramoto"},"license":"Apache-2.0","_id":"@googlemaps/map-loader@0.1.0","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},{"name":"jpoehnelt","email":"justin.poehnelt@gmail.com"}],"homepage":"https://github.com/googlemaps/js-map-loader#readme","bugs":{"url":"https://github.com/googlemaps/js-map-loader/issues"},"dist":{"shasum":"de70b3691da1f94f6149c6169b6ff27cf866ef0b","tarball":"https://registry.npmjs.org/@googlemaps/map-loader/-/map-loader-0.1.0.tgz","fileCount":28,"integrity":"sha512-oy83SnqgI25dylI4KBuc7T/LNVtgq375ZBh+zthTx58mYoxvV/VN+jsHkLLW7m7AEt9PIB2m9IBmUxX92QVqKA==","signatures":[{"sig":"MEUCIARCI6gYKsSPXwM9HNNEmlu6YPhICDix5gVjxC90Upu5AiEAkyLnKp/prAOZF83dGDY0TpOztbY99CdMLciGn9Us5e4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":402478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeflIhCRA9TVsSAnZWagAAnT0QAJ7ta7DoWAwllkEpvlkD\nYxCftsezlCVTi58uEhu1JIGJbLlv1mjG70crKkt8jB7FBP5gYPye/W49s3p+\nUAnSr+a3ejqpWIDNacPgNBXVSFKFdpmJ5fzr695Lu9fGBwiNzoeFWxbwAgl4\nEkF4KnmS8G/z3fl3R9uNCxBcDSt2vwnSLClXupqI4aXD9Ax0U7a2R6Lbka95\nZ+HK8pR1zdxfH2tgDW2zZLDifnBTbs1R2jnbE4IhPrB0Iyidx79qbdXsvYCO\nLlQS7LvR1hQUmn4I4NrZe9EIFzImHajL66ZHZCPS7XJSryHDs4sQ6pHC8HWR\nF1M5KCF3Mkz7GOa9/bLzOrqxcuxne6ufSmsGJ+fq6x56qsUjV6UaBX+DxkR1\nEAYYVQZiStDxREL7fL9KtjRg7dpz438cVC17lWXHf6tvPloTkGYSCSPys+Ui\nKn/wz9aFUix0bu7ZGQ5bizFjQdUvlePdUxCacLUT67B+iPmMSJMSipwvKTht\nYF4Sa0vRT6AIbT0mOxKfRNOb3BfiTfC4+Rib3+gykj2cYkjV0EkUEaen/441\nNcPTy5T0Pwy7FKxgEJ6AiwHxI3HQdBE52jAYWEks8MKuqalvsS+25QLZa8rS\n2X5MLFu9uAjHcCaKtc72ekx51NxYHN95GzRVKJ/k4k+0SO1Qu17Rwj3D2vQI\nmtWq\r\n=sS6D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/map-loader.umd.js","types":"dist/index.d.ts","module":"dist/map-loader.esm.js","gitHead":"def025abda48bebb483c399b5ff2e1f6f3df09f0","scripts":{"lint":"eslint src/*","test":"jest","format":"sort-package-json && prettier *.json *.js src/* examples/* --write","prepare":"rollup -c"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googlemaps/js-map-loader.git","type":"git"},"_npmVersion":"6.14.3","description":"Automatic initialization and loading of the Maps JS API base map into the DOM","directories":{},"_nodeVersion":"10.15.3","dependencies":{"@googlemaps/loader":"^0.0.8"},"publishConfig":{"access":"public","registry":"https://wombat-dressing-room.appspot.com"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.2.3","rollup":"^2.2.0","webpack":"^4.42.1","babel-jest":"^25.2.3","typescript":"^3.8.3","@babel/core":"^7.9.0","@types/jest":"^25.1.4","webpack-cli":"^3.3.11","@babel/preset-env":"^7.9.0","@types/googlemaps":"^3.39.3","webpack-devserver":"0.0.6","rollup-plugin-babel":"^4.4.0","rollup-plugin-terser":"^5.3.0","rollup-plugin-commonjs":"^10.1.0","@babel/preset-typescript":"^7.9.0","rollup-plugin-typescript2":"^0.26.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/map-loader_0.1.0_1585336864566_0.022661939098116424","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@googlemaps/map-loader","version":"1.0.1","keywords":["google","maps"],"author":{"name":"Alex Muramoto"},"license":"Apache-2.0","_id":"@googlemaps/map-loader@1.0.1","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},{"name":"jpoehnelt","email":"justin.poehnelt@gmail.com"}],"homepage":"https://github.com/googlemaps/js-map-loader#readme","bugs":{"url":"https://github.com/googlemaps/js-map-loader/issues"},"dist":{"shasum":"df763367e254cc5f6a32303c341c7bf96a6d8109","tarball":"https://registry.npmjs.org/@googlemaps/map-loader/-/map-loader-1.0.1.tgz","fileCount":31,"integrity":"sha512-AdyUgvdDIFIsnJCM74Oc5Eq7jMt0AwoRGOnWIAZFAR2lE/0nfj93Y4Gi7fBfTYu2ZhZzw+MWGujsMcCVOZCIaA==","signatures":[{"sig":"MEUCIC8XATeR83Xcw6y3MK13ZbCsgg5PLGrbRRXob6mi1WRFAiEA06c1lvARIHxmoWhIaWTZvSXtVou3O8aZiHfob4UxPAk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":415519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeljtOCRA9TVsSAnZWagAARj8QAItnZCtABzbWyt2gh9Tk\nf9n39WDM/MSA+R14+c9Wvgh16N7+EzxvNmGYLBWHisY/Xr67fzkyBhc2iQf0\n+jXhL7gQVVdZQkRlTvxF9A8iqVkFYxJefa3Sts0elZnObdBXiDRA5YGdPnkI\nGc5GzPiyMjNKtuG+xyRIzBceDadpjE+gd5OjxRfWIsFZiUYpxUp5/YvY2dxV\nmDfPyNTVQvQ/6EW/BfzkXgA3vxGMksKSqbwtEllOGddbJlgEXcOSTqTKK21C\n8VBpRtp7Sx30gI550HZ+845O24CbMhP/DHGHa+j+uHncD9pKB2Ac6Fcvt7/H\nVUiXolJFWaVxTu8WrP6PQw7k2hNYLNyHig1aqmePNO03eyrNgWCAroCQfuSl\nGjh/MOJgPhFn3TrTN+pYm3FCFk7mWxIJWTjgVkJegfnLsHuZ6ooN/jttZ+HA\nDRcuTG1skNJj3RfuyVguysogI/EtPjqtC77k9YedGAjX/+0s7ggYkD5ocnIC\nXk4Ko0VGl3JXsGPQ9OA1Z68vbeVMuMcI6jsQlUo4pJKNpW4hULWVFhKF5OL8\nBSUxn7y5edLZnv3YUwodKuJ9EEN1qzx8VTo6AEt6nYlXJVYG/mk4LtJa8fEE\nOspD2IO6RvVQRDObKgWQ3JAvuwrz3mXarUcatq3GYKah7myPsUOJmBWrM2GO\nBQSD\r\n=Lwna\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/map-loader.umd.js","types":"dist/index.d.ts","module":"dist/map-loader.esm.js","gitHead":"eb079db6993ee3d144364c9e9a0dee05cc5a2797","scripts":{"lint":"eslint src/*","test":"jest src/*","format":"sort-package-json && prettier *.json *.js src/* examples/* --write","prepare":"rollup -c"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googlemaps/js-map-loader.git","type":"git"},"_npmVersion":"6.14.4","description":"Automatic initialization and loading of the Maps JS API base map into the DOM","directories":{},"_nodeVersion":"10.20.1","dependencies":{"@googlemaps/loader":"^0.0.8"},"publishConfig":{"access":"public","registry":"https://wombat-dressing-room.appspot.com"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.2.3","eslint":"^6.8.0","rollup":"^2.2.0","ts-jest":"^25.3.1","webpack":"^4.42.1","babel-jest":"^25.2.3","typescript":"^3.8.3","@babel/core":"^7.9.0","@types/jest":"^25.1.4","webpack-cli":"^3.3.11","@babel/preset-env":"^7.9.0","@types/googlemaps":"^3.39.3","webpack-devserver":"0.0.6","eslint-plugin-jest":"^23.8.2","rollup-plugin-babel":"^4.4.0","rollup-plugin-terser":"^5.3.0","@googlemaps/jest-mocks":"0.0.3","rollup-plugin-commonjs":"^10.1.0","@babel/preset-typescript":"^7.9.0","@typescript-eslint/parser":">=2.25.0","rollup-plugin-typescript2":"^0.26.0","rollup-plugin-node-resolve":"^5.2.0","@typescript-eslint/eslint-plugin":">=2.25.0"},"_npmOperationalInternal":{"tmp":"tmp/map-loader_1.0.1_1586903885681_0.6213646526472136","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@googlemaps/map-loader","version":"0.2.0","keywords":["google","maps"],"author":{"name":"Alex Muramoto"},"license":"Apache-2.0","_id":"@googlemaps/map-loader@0.2.0","maintainers":[{"name":"jpoehnelt","email":"justin.poehnelt@gmail.com"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/googlemaps/js-map-loader#readme","bugs":{"url":"https://github.com/googlemaps/js-map-loader/issues"},"dist":{"shasum":"10001466bc4afbc786dcf06fdf5a03085dee7a76","tarball":"https://registry.npmjs.org/@googlemaps/map-loader/-/map-loader-0.2.0.tgz","fileCount":32,"integrity":"sha512-YXEXoD3XtXFdA4Y9we6bQWo/mhAPWFT25HE/Op6wr6qgb8QmyHXH/xkNZk8lRe4qKxMP2AQWjTM+D2tltiNfZA==","signatures":[{"sig":"MEUCIQCPjzj6FzRbGYtE93TyA1D5qA0Z4AtoQfO9bIGmBKKcqgIgcEJoqs1R9KVGiDHKxiKew5JJs8LsBorKuXjHFrke/2M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":568066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCLM2CRA9TVsSAnZWagAAtB4P/1xk4T3dLCk07kmDna2Z\n5uME9rJ5avuhf76EIipoq8QvE8lzb+l58hieHC2zStm6GFkoq1iel1FmKDEG\nGqhwtyskQhNu0bhBZsGJVyTvYDOCCoOfedq6LqYtoFEptFASA7kp724WANYg\nMQ8xU7GgqaZAyTi6ezkiqwz9Sf77rbS0sVhLAtgQgNYUpPYRn6L1/auvVPEN\nEbOPBvZ2+ds4LoAzbMWntGatPdNIixsz0dM8UH2rhmHszbT3QdMXP83Oxezd\n5rZpiBgXjzbnOrWGyw1vRHe101OIIr0l658qr15PHZUKjP1/rsM226wNSK1N\nyzwmRoJg3f/gjFzobe2MGZ/HShX57Cs+mTQukCIsCvTxBJmc5+UO3u6kMLa5\nExcea9v3c5wFiRyp9XgYoYslf/kVsXADYhUtP20M9varYRQFx1vaiFJ9l2tg\nk947Tkp6xTto0c52QRKsq6TPq3Yjb+8vv0Yth1oMaptt8b/a8oTN8PQT1r4/\nKemvkUzTMzoso2y2rL9ZQKhc5jM2JxQunOEsAbgdfWLbfXQaGyQ4nbG7v+Mf\n5XyqeJypeWMeR0B3wk3FER9cplrOT7gbGsR30dIYnho1MJGFfqFxjwFg4q4x\nteSvCWdxfcZ7iCTezm5j3c7USsoKLcSJSwCHZRo3LQ/u/v9I31NIsXu0jmDM\nXmHq\r\n=Kfd4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/map-loader.umd.js","types":"dist/index.d.ts","module":"dist/map-loader.esm.js","gitHead":"4ee316475afcfa56f024fd86985fe8cd144fc98b","scripts":{"lint":"eslint src/*","test":"jest src/*","format":"sort-package-json && prettier *.json *.js src/* examples/* --write","prepare":"rollup -c"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/googlemaps/js-map-loader.git","type":"git"},"_npmVersion":"6.14.11","description":"Automatic initialization and loading of the Maps JS API base map into the DOM","directories":{},"_nodeVersion":"14.15.4","dependencies":{"@googlemaps/js-api-loader":"^1.11.1"},"publishConfig":{"access":"public","registry":"https://wombat-dressing-room.appspot.com"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.3.0","eslint":"^6.8.0","rollup":"^2.4.0","ts-jest":"^25.3.1","babel-jest":"^25.2.3","typescript":"^3.8.3","@babel/core":"^7.9.0","@types/jest":"^25.1.4","@babel/preset-env":"^7.9.0","@types/googlemaps":"^3.39.3","eslint-plugin-jest":"^24.0.0","@rollup/plugin-babel":"^5.2.2","rollup-plugin-terser":"^5.3.0","@googlemaps/jest-mocks":"0.0.3","@rollup/plugin-commonjs":"^17.0.0","@babel/preset-typescript":"^7.9.0","@typescript-eslint/parser":">=2.25.0","rollup-plugin-typescript2":"^0.29.0","@rollup/plugin-node-resolve":"^11.0.1","@typescript-eslint/eslint-plugin":">=2.25.0"},"_npmOperationalInternal":{"tmp":"tmp/map-loader_0.2.0_1611182901847_0.20025612467842113","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-03-27T19:21:04.351Z","modified":"2026-05-14T23:26:29.396Z","0.1.0":"2020-03-27T19:21:04.701Z","1.0.1":"2020-04-14T22:38:05.855Z","0.2.0":"2021-01-20T22:48:22.034Z"},"bugs":{"url":"https://github.com/googlemaps/js-map-loader/issues"},"author":{"name":"Alex Muramoto"},"license":"Apache-2.0","homepage":"https://github.com/googlemaps/js-map-loader#readme","keywords":["google","maps"],"repository":{"url":"git+https://github.com/googlemaps/js-map-loader.git","type":"git"},"description":"Automatic initialization and loading of the Maps JS API base map into the DOM","maintainers":[{"email":"node-team-npm+wombot@google.com","name":"google-wombot"},{"email":"yuangela@google.com","name":"wangela"},{"email":"kwn@google.com","name":"kenough"},{"email":"bauerpower@google.com","name":"cbaueratwork"},{"email":"anglarett@google.com","name":"anglarett"},{"email":"ryanbaumann@google.com","name":"ryanbaumann"}],"readme":"![Test](https://github.com/googlemaps/js-map-loader/workflows/Test/badge.svg)\n[![codecov](https://codecov.io/gh/googlemaps/js-map-loader/branch/master/graph/badge.svg)](https://codecov.io/gh/googlemaps/js-map-loader)\n![TypeScript](https://badgen.net/badge/icon/Typed?icon=typescript&label&labelColor=blue&color=555555)\n![Apache-2.0](https://img.shields.io/badge/license-Apache-blue)\n\nMap Loader for Google Maps Platform JavaScript API v3\n==================================\n\n## Description\nAutomatically loads a Google map into your website with a few lines of JavaScript or TypeScript. You provide the ID of the div where you want the map initialized or appended to, your settings for what the map looks like, and optionally your settings for loading the Maps JS API, and this module handles the rest.\n\nLoading of the Google Maps Platform JavaScript API is taken care of for you asynchronously courteousy of [@googlemaps/js-api-loader](https://www.npmjs.com/package/@googlemaps/js-api-loader).\n\n## NPM\n\nAvailable via NPM as the package `@googlemaps/map-loader`\n\n## Example\n\n### Set map loader options\n``` javascript\nimport { GoogleMap } from 'map-loader';\n\nconst googleMapsAPIKey = \"YOUR API KEY\";\n\n/* Options for how the map should initially render. */\nconst mapOptions = {\n  center: {\n    lat: 47.649196,\n    lng: -122.350384\n  },\n  zoom: 12\n}\n\n/* Options for loading the Maps JS API. */\nconst apiOptions = {\n  version: 'weekly',\n  libraries: ['places']\n}\n\n/*\n * Set ID of the div where the map will be loaded,\n * and whether to append to that div.\n */\nconst mapLoaderOptions = {\n  apiKey: googleMapsAPIKey,\n  divId: 'google_map',\n  append: true, // Appends to divId. Set to false to init in divId.\n  mapOptions: mapOptions,\n  apiOptions: apiOptions\n};\n```\n### Load the map:\n``` javascript\n// Instantiate map loader\nconst mapLoader = new GoogleMap();\n\n// Load the map\nmapLoader\n  .initMap(mapLoaderOptions)\n  .then(googleMap => {\n    // returns instance of google.maps.Map\n  });\n```\n\n### Or if you like, with async/await\n``` javascript\n// Instantiate map loader\nconst mapLoader = new GoogleMap();\n\n// Load the map\nconst await googleMap = mapLoader.initMap(mapLoaderOptions);\n```\n\n## Documentation\n\nIf you're using TypeScript, the map loader exports interfaces for `MapLoaderOptions` and `MapsJSAPIOptions`. Options for base map settings are provided courteousy of google.maps.MapOptions in [@types/googlemaps](https://www.npmjs.com/package/@types/googlemaps).\n\n\n### MapLoaderOptions\n\n| Property | Type | Description |\n| -------- | ---- | ----------- |\n| apiKey | string | Your API key. For information on generating an API key, see [How to generate and restrict API keys for Google Maps Platform](https://youtu.be/2_HZObVbe-g). |\n| divId | string | The ID of the div where you want the map initialized or appended. |\n| mapOptions | [google.maps.MapOptions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/googlemaps/index.d.ts#L479) | Settings for how the map should appear. For a complete list of map options, see [google.maps.MapOptions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/googlemaps/index.d.ts#L479). |\n| apiOptions | [MapsJSAPIOptions](#mapsjsapioptions) | Setting for loading the Maps JavaScriptAPI. For a complete list of API options, see [MapsJSAPIOptions](#mapsjsapioptions). |\n| append | boolean | *Optional.* Defaults to false. Sets whether to initialize the map in or append to `divId`. |\n\n### MapsJSAPIOptions\n\n| Property | Type  | Description |\n| -------- | ----- | ----------- |\n| version | string | *Optional.* Defaults to `weekly`. Version of the Maps JS API to load. For more information on supported values, see [Release channels and version numbers](https://developers.google.com/maps/documentation/javascript/versions#release-channels-and-version-numbers). |\n| libraries | Array<string> | *Optional.* Additional Maps JS API libraries to load. Supported values are `drawing`, `geometry`, `places`, `visualization`. |\n| language | string | *Optional.* Defaults to `en`. The language code of the language to localize the map to. For more information on supported values, see [supported languages](https://developers.google.com/maps/faq#languagesupport). |\n| region | string | *Optional.* Defaults to `us`. Sets the Unicode region subtag identifier of the region to localize the map to. For more information on supported values, see [Region localization](https://developers.google.com/maps/documentation/javascript/localization#Region). |\n\n## Support\n\nThis library is community supported. We're comfortable enough with the stability and features of\nthe library that we want you to build real production applications on it.\n\nIf you find a bug, or have a feature suggestion, please [log an issue][issues]. If you'd like to\ncontribute, please read [How to Contribute][contrib].\n\n[issues]: https://github.com/googlemaps/js-map-loader/issues\n[contrib]: https://github.com/googlemaps/js-map-loader/blob/master/CONTRIBUTING.md\n","readmeFilename":"README.md"}