{"name":"pmtiles","version":"0.0.2","author":{"name":"Brandon Liu"},"license":"BSD-3-Clause","_id":"pmtiles@0.0.2","homepage":"https://github.com/protomaps/pmtiles","dist":{"shasum":"1517904cd7eb112c5249500bc8436000c24a3d98","tarball":"http://registry-npm.ywwl.com/pmtiles/download/pmtiles-0.0.2.tgz","fileCount":2,"integrity":"sha512-l0QV7nfo9K6iGzNB4ZJ++n2kFfK0FPcCuPbDxP1TtX9qizazY7psfqCASGYpKoIidGYlojV530b1hATUxpVuyA==","signatures":[{"sig":"MEYCIQDNKd6Uy0nBx+yYc2+FeHOn6bACYH/dNrstzf75142ingIhANWp0hb2znO4JkzYgZ0aeUN8bU/nZLWDj1s4d6mGmGwG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLMCeCRA9TVsSAnZWagAAAm4P/RA+kxRKTtmbrLhf9psQ\nlZe2EE86UKI0Cn+zrGPevZcKNiJfARv3hyJsaheWz4+snAG3amqtyCjM59dy\ndYdUlZfi2ddy/UhcdtqHThWDzVElUey/CIlyhTmhyP68h/Nilh9Qla9UB+rc\nXhx1IhQ5BVo3Io2RXZCRr4ygAfcQv3tdA3mk/0VZgPRQuEHGwVmHzBo+W8F2\nVBCFAdlMc5bQktpm+SM8xa+UzRrSVXVgUzvu0duiUoLI+CzqHrgf/7zeNhoX\n2Op8JWkFNZmVRozRHl0eJ4vKJ4EJ1OTxKSonw5N04pabyqLF3ai2HvR4E30r\nJR/zoDSgSSr1wCnFIgyXMkXg4v3rDg5nzisA/cQzP5hDf4Slz19CndbUBK82\nu8q+wRE2ymyIFIg5HHHCz3BA3xSjzGW5HZRxJs7QC1hVmP93fsDOZZMfbssv\nRPdMUoUr1TfuLR03zO11adZsXR6DibtR1utokx3wLjAz5TDojc6Vf9AqjkIi\n9c9S8wTJChsLono4ZsKpLIVvKT2MjqpnqFwxGGtFQscjo7MJiQbQJjHPojuk\n2feh8ERxzj9gqdXaSetc+5d7icIzVbRcZNEDFJ5Epv7HNfUG90pS2L6tWR8N\nsPDdFz/WaXkaZhoaenDR03syu0HXCBjgm9nYFfReaJ1h0eBS3nCVkJL8+qWG\nhPAD\r\n=dWs3\r\n-----END PGP SIGNATURE-----\r\n","size":499,"noattachment":false,"key":"/pmtiles/-/pmtiles-0.0.2.tgz"},"main":"pmtiles.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"bdon","email":"bdon@bdon.org"},"_npmVersion":"6.14.8","description":"PMTiles archive decoder for browsers","directories":{},"_nodeVersion":"14.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pmtiles_0.0.2_1613545630160_0.4507643886387249","host":"s3://npm-registry-packages"},"readme":"# PMTiles for Browsers + NodeJS\n\nSee the [JavaScript API docs](https://pmtiles.io/typedoc/)\n\nthe [PMTiles](https://www.npmjs.com/package/pmtiles) package can be included via script tag or ES6 module:\n\n```html\n <script src=\"https://unpkg.com/pmtiles@<VERSION>/dist/pmtiles.js\"></script>\n```\n\nAll the PMTiles exports are available under the global `pmtiles` variable e.g. `pmtiles.PMTiles`.\n\nAs an ES6 module: `npm add pmtiles`\n\n```js\nimport { PMTiles } from \"pmtiles\";\n```\n\n### Leaflet: Raster tileset\n\nExample of a raster PMTiles archive displayed in Leaflet:\n\n```js\nimport { PMTiles, leafletRasterLayer } from \"pmtiles\";\nconst p = new PMTiles('example.pmtiles')\nleafletRasterLayer(p,{attribution:'© <a href=\"https://openstreetmap.org\">OpenStreetMap</a>'}).addTo(map)\n````\n\n[Live example](https://pmtiles.io/examples/leaflet.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/js/examples/leaflet.html)\n\n### Leaflet: Vector tileset\n\nSee [protomaps-leaflet](https://github.com/protomaps/protomaps-leaflet)\n\n## MapLibre GL JS\n\nExample of a PMTiles archive displayed in MapLibre GL JS:\n\n```js\nimport { Protocol } from \"pmtiles\";\nlet protocol = new Protocol();\nmaplibregl.addProtocol(\"pmtiles\",protocol.tile);\nvar style = {\n\"version\": 8,\n\"sources\": {\n    \"example_source\": {\n        \"type\": \"vector\",\n        \"url\": \"pmtiles://https://example.com/example.pmtiles\",\n        \"attribution\": '© <a href=\"https://openstreetmap.org\">OpenStreetMap</a>'\n    ...\n```\n\n[Live example](https://pmtiles.io/examples/maplibre.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/js/examples/maplibre.html)\n\n# CORS\n\nSee the [Protomaps Docs on Cloud Storage](https://protomaps.com/docs/pmtiles/cloud-storage) for uploading and configuring CORS for Cloudflare R2, Amazon S3, Google Cloud Storage and more.\n","publish_time":1613545630298,"maintainers":[{"name":"bdon","email":"bdon@bdon.org"}],"_cnpm_publish_time":1613545630298,"dist-tags":{"beta":"3.0.0-alpha.2","latest":"4.5.0"}}