{"name":"pmtiles","version":"0.0.6","author":{"name":"Brandon Liu"},"license":"BSD-3-Clause","_id":"pmtiles@0.0.6","homepage":"https://github.com/protomaps/pmtiles","dist":{"shasum":"03fe0d74083cb88f95eeab0883ba5a2c9d9ef603","tarball":"http://registry-npm.ywwl.com/pmtiles/download/pmtiles-0.0.6.tgz","fileCount":2,"integrity":"sha512-5+ZizFytzUr2uaSvbTIMzWCQZLBcs+oxZNgF7M3Ous86p9/FFHCabveZDuLO+sIWBcRr73pi8/6K7U8vPGAN/A==","signatures":[{"sig":"MEUCIQCStkJv7bcGNeeXB5z5UBfBRvr+3C3U74qTppeqrsmvOwIgKtAeV7ObqVBNIrEsGjwTfPE7zfkzkr2ShvqBIsPiOJA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcnthCRA9TVsSAnZWagAAoAAP+wbW2Gnc994BJM4ggj0t\n1NcdKv2f6BWtK5mwaytfZp4f65XCZR4ek3ZS3tDGkfDQuFn2s1PZZpluK9Gf\nLkTifdRHHXSoO0ZoroFo17tRwfJoSvwMsTWKKTdh2oJ8kpNwXYTktERqU7Ad\ntV2dK6/sGtHwA/pPPsTrR+fB+87VLCBOKGqSImrLfxvDyrxk2umpVcesg+X0\n//J4+vAw/RU9EOvJpI0Tlid410dYVgV26X3AsQaSrCIPfAsNN6ShvGXeO9Sx\n3Wdj04h9pyj4y3SeGnXUZStjSx+Ml8rohmYL6J29ApF5N6PSWsWPvNGAEWfp\nbig37y4Ua0Tv3teBxibypXSojTmCO2/NelAsTuBm4RCYcybWTyMVvBBwKROh\nDX9kx+g0lloZ606gLcfkGsa75m2b71AgFwscynxPTTQFDyIhJh5+KuY41Q5A\n59ApwNsLoqYaC4JWfDxJoq9qcTCFaKkHpLSRfz/t4aF1vTrfamXOGEMhjggM\nJ7GLnW6ej41MyR4xkepUv/LFDvTtbVgPhanyAKZoGI+YlXnTOT0dl1Mnw/Jt\n6qUf9Yb+8IpfRs3qnXCq87kXJf00af/ZTCtTNmQxnwsIShQyB03x4fKkwd34\nYyGQCouve6bE8zKzgwXdK/raySF8bw5Q9RwPt9MmkWQn4DMoGlKKhg7o7W+F\nBmhb\r\n=/eUE\r\n-----END PGP SIGNATURE-----\r\n","size":2483,"noattachment":false,"key":"/pmtiles/-/pmtiles-0.0.6.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.6_1618115424853_0.8636248623755398","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":1618115424983,"maintainers":[{"name":"bdon","email":"bdon@bdon.org"}],"_cnpm_publish_time":1618115424983,"dist-tags":{"beta":"3.0.0-alpha.2","latest":"4.5.0"}}