{"name":"pmtiles","version":"0.0.8","author":{"name":"Brandon Liu"},"license":"BSD-3-Clause","_id":"pmtiles@0.0.8","homepage":"https://github.com/protomaps/pmtiles","dist":{"shasum":"12d1bb805b4b8ee2f4c7acac3636f391476e156a","tarball":"http://registry-npm.ywwl.com/pmtiles/download/pmtiles-0.0.8.tgz","fileCount":3,"integrity":"sha512-w/U4nHyr+i00RXVJ/qmwmyZj5p57ANaA1B7y8z2ONWxsSIPwhMZGM0j+BYAcT5oUn9xqhPLsm+Ttb+Q52rarSg==","signatures":[{"sig":"MEUCIQCJI3szENR8+sTMVu2DAO275QRkRukbvktgiOoGvhaUFAIgCTbQUPvh66LWk2D2gRO+FzEKKropsu0zw8U/ZXrqhNI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiRiICRA9TVsSAnZWagAABX8P/3HX8PXSRCmE2Lu2Ybh5\ndsU1UyZwZUNRZmv6Gnub2YRdmauC77mSi32BCVMOB4qnYB/8ido5WENnQHD6\nMYQmCb8+35nwpjPRV0YtQUuI4vmTCBj6XfpcdWMWW5+Xeg0E/vuKFtusFVnJ\nVZcpwN4q6xcIXu6mwYYtddqPRiWGonRr5AKiHNQxfhu9dSiJ7aKNEg6rkgF4\nUP8HxTgr0TXQZQPFYwkY7UkHrbRZBKs2B9UidnQePL/wkZSBA8ixK4OjDvhF\nF+U+U+r4lkkdN/BlZLZV+yswy918dbLzwBwSark3elwTxTn3maRKKJobYPur\n/UwLqEyXSSB47JhKY/XqA0vuap+LLYHzY3FhbWKMFITAW7+utNxn0yuBM3D9\nUOaHCQ5+cnvnG+ecsKbD4x2nMEeNQFTGSM7I0NlpJF+h2Lh75YReoGk2I8Q3\nws+bvawX7kXEbZdhnAxjXuCBKzS0ev1sA/aw7XDTyP2rIquqdhlaGN+vs+LQ\n8AdeXT6ZODSag7w8JF9FxGfehrZuB+R9DanEBVS3X8bIXLFadvxDAkzPdzin\naY2oRe2Ck4/FIRZ6RN6TYNKU2TNxZmzRXF1spNVVmaCCQxGxwEAl2mgzY31e\neMlW4nRXBd0BReSYlUltlyh5sswMNhKHOKGBMs803HSw+uid0y3GA5HHvI00\n1pqR\r\n=0ezr\r\n-----END PGP SIGNATURE-----\r\n","size":3708,"noattachment":false,"key":"/pmtiles/-/pmtiles-0.0.8.tgz"},"main":"index","unpkg":"index.js","module":"index.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"esbuild index.mjs --outfile=index.js --target=es2015 --global-name=pmtiles --format=iife"},"_npmUser":{"name":"bdon","email":"bdon@bdon.org"},"jsdelivr":"index.js","_npmVersion":"6.14.8","description":"PMTiles archive decoder for browsers","directories":{},"_nodeVersion":"14.15.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.11.14"},"_npmOperationalInternal":{"tmp":"tmp/pmtiles_0.0.8_1619597447997_0.7795573021250577","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":1619597448173,"maintainers":[{"name":"bdon","email":"bdon@bdon.org"}],"_cnpm_publish_time":1619597448173,"dist-tags":{"beta":"3.0.0-alpha.2","latest":"4.5.0"}}