{"_id":"maplibre-google-maps","_rev":"5-5934be941767e16bbac3bada5eb7272c","name":"maplibre-google-maps","description":"MapLibre Google Maps plugin","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"maplibre-google-maps","version":"1.0.0","keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"license":"Apache-2.0","_id":"maplibre-google-maps@1.0.0","maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"homepage":"https://github.com/traccar/maplibre-google-maps#readme","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"dist":{"shasum":"edb83e0a5f5c46fa4a3dee7282e0e22d2ce8c00d","tarball":"https://registry.npmjs.org/maplibre-google-maps/-/maplibre-google-maps-1.0.0.tgz","fileCount":4,"integrity":"sha512-sJoznJvdU65g7q8Jh9wpn8k6TX9wsUNDqPJNKJnzvKnB5JjKSxV+/p+5hAAYV2MJp+0euMLjVmSk/V/KxzQ/WA==","signatures":[{"sig":"MEUCIQCUugJv9+j7uJVtOUKqo+EUghAoz0CBy84AA4s3riiTpgIge5RX2fiaJNId3MuuTTWzKl5VqwIH0d1Qnk4kYkway6E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3095},"main":"index.js","type":"module","gitHead":"46d09a900c731c37a2f1cdd0b7314dd9d6621ff8","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"tananaev","email":"anton.tananaev@gmail.com"},"repository":{"url":"git+https://github.com/traccar/maplibre-google-maps.git","type":"git"},"_npmVersion":"10.7.0","description":"MapLibre Google Maps plugin","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/maplibre-google-maps_1.0.0_1718130085760_0.8532688995678372","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"maplibre-google-maps","version":"1.0.1","keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"license":"Apache-2.0","_id":"maplibre-google-maps@1.0.1","maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"homepage":"https://github.com/traccar/maplibre-google-maps#readme","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"dist":{"shasum":"722d0c257b1f1d30387fdc5a4d20c80420f10439","tarball":"https://registry.npmjs.org/maplibre-google-maps/-/maplibre-google-maps-1.0.1.tgz","fileCount":4,"integrity":"sha512-UEVF9D/VSaL+sTCEPNFXwbxiPnMOVJxj3ybncABLxs6Hka7LgaDYGjAjNzb2SjL/kFEa+kA6lKUoAh0z7tyk/g==","signatures":[{"sig":"MEUCIGdHSnxHzDKviHrJLMziFtCYWxU7G+P6FyU6jUip898iAiEAmxHdvs3Njr4+o0bzYdIDH6mwhstu1R2OmkETXPwmbhk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3120},"main":"index.js","type":"module","gitHead":"1d598aa29a08b550ed96903547382636da23c4c3","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"tananaev","email":"anton.tananaev@gmail.com"},"repository":{"url":"git+https://github.com/traccar/maplibre-google-maps.git","type":"git"},"_npmVersion":"10.7.0","description":"MapLibre Google Maps plugin","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/maplibre-google-maps_1.0.1_1718130906180_0.008896443204170712","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"maplibre-google-maps","version":"1.0.2","keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"license":"Apache-2.0","_id":"maplibre-google-maps@1.0.2","maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"homepage":"https://github.com/traccar/maplibre-google-maps#readme","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"dist":{"shasum":"e82720985459bcdb79b97d3623095bd6ed12f1ab","tarball":"https://registry.npmjs.org/maplibre-google-maps/-/maplibre-google-maps-1.0.2.tgz","fileCount":4,"integrity":"sha512-BqoJV9samRZOKqq9BgmwI+2DbMTDK+BivyJQjO2z8nwd+8PD9OOrS+fVw6pt6muX6AyP0bDADYoBMQpOHev1rQ==","signatures":[{"sig":"MEUCIQDkJlGVAULK8z29TQrD2JtaqPYVHjvhJqbIFUBBtlOmAwIgboMsXRPliCdyy6CTPnW+OkfilUsRwNsXp16hOioOFiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3128},"main":"index.js","type":"module","gitHead":"c2d919776de1c27836465e1ad55511f43e3f0418","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"tananaev","email":"anton.tananaev@gmail.com"},"repository":{"url":"git+https://github.com/traccar/maplibre-google-maps.git","type":"git"},"_npmVersion":"10.7.0","description":"MapLibre Google Maps plugin","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/maplibre-google-maps_1.0.2_1718163505125_0.5775595202368138","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"maplibre-google-maps","version":"1.0.3","keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"license":"Apache-2.0","_id":"maplibre-google-maps@1.0.3","maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"homepage":"https://github.com/traccar/maplibre-google-maps#readme","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"dist":{"shasum":"3c4d11acbad90987b651ea05357eff5455a4f983","tarball":"https://registry.npmjs.org/maplibre-google-maps/-/maplibre-google-maps-1.0.3.tgz","fileCount":4,"integrity":"sha512-Ud+1B0ax0ZvycOfOp/K+Uyvav33KBG99SamgWnwEWjtc+VMrqZuwxakkgGvzxinXZki3UR9Y1GwpMhfR48oHtQ==","signatures":[{"sig":"MEUCIQDbNYHphyXzAU09Lmo8r/Iv7CZHFnXYJP9WSV+ngSk9dwIgSm/c12+Sz9bU3e3XCvMKhq2s7JQ7DhNYwINO3IX/CXk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3147},"main":"index.js","type":"module","gitHead":"c2d919776de1c27836465e1ad55511f43e3f0418","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"tananaev","email":"anton.tananaev@gmail.com"},"repository":{"url":"git+https://github.com/traccar/maplibre-google-maps.git","type":"git"},"_npmVersion":"10.7.0","description":"MapLibre Google Maps plugin","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/maplibre-google-maps_1.0.3_1718163581003_0.33135096660163654","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"maplibre-google-maps","version":"1.0.4","keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"license":"Apache-2.0","_id":"maplibre-google-maps@1.0.4","maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"homepage":"https://github.com/traccar/maplibre-google-maps#readme","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"dist":{"shasum":"a3548434d88e4075bc586b4847b801e28e688337","tarball":"https://registry.npmjs.org/maplibre-google-maps/-/maplibre-google-maps-1.0.4.tgz","fileCount":4,"integrity":"sha512-R09vVrcb4tf6NP9OhP1NdD3Qb0fm5K29OIn57mBXdGL36u6XLNF8Rxi3HEry4B2GX1SzRDJsB+WZBxxtpa2wDw==","signatures":[{"sig":"MEUCIBxTKH06bxjIJTBxKbk8AmFm0VpPuTC3V6uhXFfucrteAiEAm/j62MFv7pK0FoA4FYy/+o4lh3C4ecV3NBUjpEtW5eY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3968},"main":"index.js","type":"module","gitHead":"b3973f4d5481ac498e7102212694a8a132792162","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"tananaev","email":"anton.tananaev@gmail.com"},"repository":{"url":"git+https://github.com/traccar/maplibre-google-maps.git","type":"git"},"_npmVersion":"10.7.0","description":"MapLibre Google Maps plugin","directories":{},"_nodeVersion":"22.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/maplibre-google-maps_1.0.4_1718164825080_0.8066603682401274","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"maplibre-google-maps","version":"1.1.0","description":"MapLibre Google Maps plugin","main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/traccar/maplibre-google-maps.git"},"keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"license":"Apache-2.0","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"homepage":"https://github.com/traccar/maplibre-google-maps#readme","_id":"maplibre-google-maps@1.1.0","gitHead":"caeec9438a3fdc29272f744de3088a390a872cc6","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-bWeaLGvWriC8tMdgQfOdojnXGWyZ8Qva7mbs3qIqLHWAAuOEhlt2X0O4eGKuSKTMHGUIPEKlck3nquoWGhDQ7w==","shasum":"b991a0331d0bb5447a544f1c392b52554170d7d4","tarball":"https://registry.npmjs.org/maplibre-google-maps/-/maplibre-google-maps-1.1.0.tgz","fileCount":4,"unpackedSize":4605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChD4K2UWjgTlv+eF7zW3XXbyazJyEtMoGXRK7TtzUAogIgLQX5ycDfd6O7Rd7QR4lwRL73g9wTDzZ+l3C0SnJnN/Q="}]},"_npmUser":{"name":"tananaev","email":"anton.tananaev@gmail.com"},"directories":{},"maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/maplibre-google-maps_1.1.0_1718202745026_0.2352333531807882"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-11T18:21:25.759Z","modified":"2024-06-12T14:32:25.336Z","1.0.0":"2024-06-11T18:21:25.894Z","1.0.1":"2024-06-11T18:35:06.362Z","1.0.2":"2024-06-12T03:38:25.276Z","1.0.3":"2024-06-12T03:39:41.151Z","1.0.4":"2024-06-12T04:00:25.212Z","1.1.0":"2024-06-12T14:32:25.185Z"},"maintainers":[{"name":"tananaev","email":"anton.tananaev@gmail.com"}],"author":{"name":"Anton Tananaev","email":"anton@traccar.org"},"repository":{"type":"git","url":"git+https://github.com/traccar/maplibre-google-maps.git"},"keywords":["mapbox","mapbox-gl","mapbox-gl-js","maplibre","maplibre-gl","maplibre-gl-js","google-maps"],"license":"Apache-2.0","homepage":"https://github.com/traccar/maplibre-google-maps#readme","bugs":{"url":"https://github.com/traccar/maplibre-google-maps/issues"},"readme":"# MapLibre Google Maps plugin\n\nUsing this plugin you can add Google Maps layers to MapLibre GL JS.\n\n\nTo install dependency use the following NPM command:\n```bash\nnpm install maplibre-google-maps\n```\n\nThe libary includes two functions:\n- `googleProtocol` - protocol handler that needs to be passed to `maplibregl.addProtocol` with `google` as the protocol name\n- `createGoogleStyle` - function to create an instance map style; it accepts 3 arguments:\n  - `id` - source id; can be any string\n  - `mapType` - type of the map; `roadmap` and `satellite` are supported\n  - `key` - Google API key with Map Tiles API enabled\n\nUsage example:\n```js\nimport { googleProtocol, createGoogleStyle } from 'maplibre-google-maps';\n\nmaplibregl.addProtocol('google', googleProtocol);\n\nconst map = new maplibregl.Map({\n  container: 'map',\n  style: createGoogleStyle('google', 'roadmap', 'YOUR_GOOGLE_KEY'),\n});\n```\n\nYou need to replace `YOUR_GOOGLE_KEY` with your Google API key with Map Tiles API enabled. For more information check the official [Google documentation](https://developers.google.com/maps/documentation/tile/get-api-key).\n","readmeFilename":"README.md"}