{"name":"pmtiles","version":"0.0.5","author":{"name":"Brandon Liu"},"license":"BSD-3-Clause","_id":"pmtiles@0.0.5","homepage":"https://github.com/protomaps/pmtiles","dist":{"shasum":"74b4c1f386392a242d4fc6393c8163a2034c8990","tarball":"http://registry-npm.ywwl.com/pmtiles/download/pmtiles-0.0.5.tgz","fileCount":2,"integrity":"sha512-6NefTsBnE19IVYqf/82udHD/TbNgrtymsOlvFLJUcGdyvSsKA5uDUlY2RvpvKyxat73/7SJSAYkFwB/AbLwHYA==","signatures":[{"sig":"MEUCIDZq/0idNIBLPnvr/kBIFtainMUnrM50aiGWlNYvhD2yAiEAilQ9KbN2kq7HcJV4cyvbttIam6yOSI6ZHCHZdKMuTQQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaCm/CRA9TVsSAnZWagAA1xcP/jwsMvwXQRawG6u7/wCi\niQ6oOS2A9aWvaDey35H5q0RGV3GGMv3DTTDVW4DdMobeEsRBKwuYuXVK4M6y\nqqMWXyY1b2WBedZTRohYL/eQl+gc2vyvrxUibt1rt1HPDEh4idupzuOtpQxs\nSYTTNOrm76/gyDSW6SPctWIPUqsK06hOgd6Rw/il6Vv3PxRlo0wcSNor4QrJ\nM4hgft3D1SzxW0vAGYfTZqRoFOGQ2IBNf5jK97evXsgWc14B4nd0BnNirxbL\n/vC1ljWmKIxK8JM65VVWqKJaMzN5zeZg2HErLrhewem1Df4V5bySfUhX8kuy\niqr6/edsyCThwlkZwjIyGvN9fKSwu0cEHTAAvyB5k94nsvLHPyrtv/yXUYGF\nWwFb7Begz3dj73ZUt4usFdqZgjMcmdg7KzlfejaVwP6h91W5LeersUyZOnF3\nbRlNfosonAMnFvc5eq8trEn3T8hBVuCMRJnZY4g+ljvf50ThXfPGHtdfVcaZ\nc6/D5kAsIvrb1VWH4+qNAiKtEIcHAgxJlpTCrWGI0uTgUM+TBZA1L1h5wWGs\naD+E9c3rZKs/sbrUjFVeLInAdXr8iIVY58541yG5JXXkgZOMwDQ6nWL5AoFj\nk66DkpfNaG5oOU7DoFv7k/hLUHAl5gScNcxsNanT6Fit1n/13/W7Qw+qsMFI\npRhM\r\n=aS72\r\n-----END PGP SIGNATURE-----\r\n","size":2483,"noattachment":false,"key":"/pmtiles/-/pmtiles-0.0.5.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.5_1617439166951_0.05495819890162723","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":1617439167047,"maintainers":[{"name":"bdon","email":"bdon@bdon.org"}],"_cnpm_publish_time":1617439167047,"dist-tags":{"beta":"3.0.0-alpha.2","latest":"4.5.0"}}