{"_id":"leaflet-image","_rev":"22-d0cc2f4e33c3589b95a32a1dfd1e950f","name":"leaflet-image","description":"export leaflet maps as images","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.0":{"name":"leaflet-image","version":"0.0.0","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"_id":"leaflet-image@0.0.0","dist":{"shasum":"5cf34ab261b6d381cf51a3d65fece0a5aed522d8","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.0.0.tgz","integrity":"sha512-A6cj5h8H1ck1pPWvcHuIGJdylC1L9tnTFjV7lHiNTfKiIuNKo+rAYp6bosGIUdjCFsrJlvGtDwwEf0VUGYa8vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtxUHgBpSfKaXwdJ5ftFvm0rpkI4lYxwGJN0hvvAy3tAiEA5i2seTzNwNVOjVbpF07gPYLCLxS4nsw09Pz0ZTud51I="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}]},"0.0.1":{"name":"leaflet-image","version":"0.0.1","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~2.32.2"},"_id":"leaflet-image@0.0.1","dist":{"shasum":"f783f887de31d820b710e702bc8ff1c951534afb","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.0.1.tgz","integrity":"sha512-3d5eSunVsjnOpaSUkabYXrNKg9Mp/P5UnPybpRbncr2f3APro8ikvd/SYM3wZDqiyzHPZe/7Nm8fCYveGStBhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAS0h++czLZNL/PymP2LT141XOjJB88Jn5hovdFXp0IrAiAUba+bFFSBVAdFQoqpse8CasoneNrTUXr5o/qDoQCQQw=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}]},"0.0.2":{"name":"leaflet-image","version":"0.0.2","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~2.32.2"},"_id":"leaflet-image@0.0.2","dist":{"shasum":"0f9065084fda4a620b6285da6c9beb3d47f8be41","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.0.2.tgz","integrity":"sha512-5kxw+Hy0egtndWZqUo1YYbnW6THV3FOufiOvEePLd8sP68KiviDPsz6tyvlLBk0Xhk4QLMHR5RGIw6roUT26bA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8M0hv4LT6TJmfbwL0KwSeTk53lYH5Bs8LZF7uENFdmAiEA0suL1N6ufGUvzQYNe+RCZWBs2tdu0ol8wD8AHUF2vXo="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}]},"0.0.3":{"name":"leaflet-image","version":"0.0.3","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~2.32.2"},"_id":"leaflet-image@0.0.3","dist":{"shasum":"b92fa8bcf8913f5c7a91af98d9382b669864ec17","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.0.3.tgz","integrity":"sha512-tvAD7eOGttYddFYQN9HwnmVvnu90lM5NHCqW44oOqu6D29Z8QrEgNoDtV1MH/lH089KJxE5jBdmXQlEPFP8PEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1xL/nE93mUluHAjzZEt1/aKC3nwBatsPp0xN1Qj/Y3AiBzZpDvQUKUhDBte9lQenTya8e8uQcl7LEoWD3tUUGsTg=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}]},"0.0.4":{"name":"leaflet-image","version":"0.0.4","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~2.32.2"},"homepage":"https://github.com/mapbox/leaflet-image","_id":"leaflet-image@0.0.4","dist":{"shasum":"a2a48f0c522f9df657f7cbcb1037327dfde30b8f","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.0.4.tgz","integrity":"sha512-3iUcsf47BCfYQlwdhB4VJZUUtwB/M0WJT4tB6Od5xUd5G+soFN1ol6PXOVDtVdQMAveYZ1cGL7KEPVvxkXs57Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6VKdiqXS45vAODyvMH1TUdFZ1cxfhc/rV6kgM6WC5OQIgGWGybQ1kZYvk546WA+7/SAFCL4XkgcxLLt8plDnhiUk="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}]},"0.1.0":{"name":"leaflet-image","version":"0.1.0","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~2.32.2"},"gitHead":"87b8d10c4dca1bbec2fc9391bc415fc4d79f9afa","homepage":"https://github.com/mapbox/leaflet-image","_id":"leaflet-image@0.1.0","_shasum":"9fd6723a7cae8a54ccc30eb1d325fe8c3a486d19","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.36","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"9fd6723a7cae8a54ccc30eb1d325fe8c3a486d19","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.1.0.tgz","integrity":"sha512-xJ/4HBNeUat72UkKFrcCe4sADREh2FrZkmUuq07aCcHZj/jxR4a2I0d2yM52yhVpvRH8wygfPH5wnGVzxs0uGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDu93N8XzFQbn7yRtSnI2OYO++f6mt4WI9m4kJXUughDAiA5o3pj4vOaFews/e1dXmP6N0DiLtRTOMz6Do9/tEF1KQ=="}]}},"0.2.0":{"name":"leaflet-image","version":"0.2.0","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js","test":"eslint index.js && tape test/test.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~13.0.1","concat-stream":"1.5.1","eslint":"2.10.2","pageres":"4.1.2","pixelmatch":"4.0.1","tape":"4.5.1"},"dependencies":{"d3-queue":"2.0.3"},"gitHead":"f34c67df1767ce86138711447b0360e03509913d","homepage":"https://github.com/mapbox/leaflet-image#readme","_id":"leaflet-image@0.2.0","_shasum":"765f3bd85acb14b24d08e1e16749a11cdc6ff80b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"765f3bd85acb14b24d08e1e16749a11cdc6ff80b","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.2.0.tgz","integrity":"sha512-ONz9uJf8GUqbgQUE8fkdDCInXmm52Kxt0yQfIjC4wdMaLLq2bhrdbwN2bVosOX+YsyfJdudkl2jEgZV3qor0rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI1FPVXq4q9rApJ4GJlF3Dcd4LjYuh+lpaMCWd3F8JWQIgbV7SKobdmZDuXEK1Lk01yp0uyBX/dVRQNZISplPsVTw="}]},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/leaflet-image-0.2.0.tgz_1463608292614_0.9144612241070718"}},"0.2.1":{"name":"leaflet-image","version":"0.2.1","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js","test":"eslint index.js && tape test/test.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~13.0.1","concat-stream":"1.5.1","eslint":"2.10.2","pageres":"4.1.2","pixelmatch":"4.0.1","tape":"4.5.1"},"dependencies":{"d3-queue":"2.0.3"},"gitHead":"d450496748f61cdcee6071ef85b628d5b30f87cf","homepage":"https://github.com/mapbox/leaflet-image#readme","_id":"leaflet-image@0.2.1","_shasum":"85839747af2d6533c5d71446299b88e439eca623","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"85839747af2d6533c5d71446299b88e439eca623","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.2.1.tgz","integrity":"sha512-kr91Tah04tZjrAQQjWqf2EfqgWBfOPTu9U9TVHA1KHul0aFk0cz5O00c89LN5EtE5UakD9F9wNQ1VeihCU3btw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANtUeVQnxa9qYY/WviOAsWrN/3QdCewHqGAXvq7jyixAiBxTLI7841rA/6K/IRkFv71Uy2nNKrvr4hZ4OvFLfDr9A=="}]},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/leaflet-image-0.2.1.tgz_1463675372384_0.8218580088578165"}},"0.3.0":{"name":"leaflet-image","version":"0.3.0","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js","test":"eslint index.js && tape test/test.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~13.0.1","concat-stream":"1.5.1","eslint":"2.10.2","pageres":"4.1.2","pixelmatch":"4.0.1","tape":"4.5.1"},"dependencies":{"d3-queue":"2.0.3"},"gitHead":"1ee9ad5617257fbbb7d3b4583b8ff9c151b9dfd2","homepage":"https://github.com/mapbox/leaflet-image#readme","_id":"leaflet-image@0.3.0","_shasum":"0ccc788d595ff293e610ea461e48da5251cbc3ee","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"0ccc788d595ff293e610ea461e48da5251cbc3ee","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.3.0.tgz","integrity":"sha512-LQIx89K4226cMm5rAr8MbbwTtEK3lPotefSyzRwmuPat+xQT9HQwNlqk5C69oJoiBDjj79d/yTaKJbSVT4qwxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFNZCWfCuW0de/G51mejaj4PGYZmjYPvhKP1DIFO1FkAiEAsGvunPHqDGQm3ssou5aNv+oogzUEUvqdwY/yXGZx41E="}]},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/leaflet-image-0.3.0.tgz_1474289908250_0.14064038288779557"}},"0.4.0":{"name":"leaflet-image","version":"0.4.0","description":"export leaflet maps as images","main":"index.js","scripts":{"make":"browserify -s leafletImage index.js > leaflet-image.js","test":"eslint index.js && tape test/test.js"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"keywords":["leaflet","map","image","export","canvas"],"author":{"name":"Tom MacWright"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"devDependencies":{"browserify":"~13.0.1","concat-stream":"1.5.1","eslint":"2.10.2","pageres":"4.1.2","pixelmatch":"4.0.1","tape":"4.5.1"},"dependencies":{"d3-queue":"2.0.3"},"gitHead":"9a4190661d92b3ad8bca4b01199d1aed2498effe","homepage":"https://github.com/mapbox/leaflet-image#readme","_id":"leaflet-image@0.4.0","_shasum":"e84f22ff6288f09b9b0e2f51a4850a9f07968cc1","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.2","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"e84f22ff6288f09b9b0e2f51a4850a9f07968cc1","tarball":"https://registry.npmjs.org/leaflet-image/-/leaflet-image-0.4.0.tgz","integrity":"sha512-J/vLCHiYNXlcQ/SZbHhj/VF5k3thxTryWijoqMO9sB20KV7hlMNUZDgxcDzXnfjk4hcYcFfGbveVc1tyQ9FgYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz+AMR92CZrFo5nhUTjw0vuly85bvf77rwqvvcSx6v+gIhAO7GY65qSpChO1QcGGr/HpX3hfagVfgRxqkxhRavRWD1"}]},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/leaflet-image-0.4.0.tgz_1480968767594_0.6035553275141865"}}},"readme":"## leaflet-image\n\n[![CircleCI](https://circleci.com/gh/mapbox/leaflet-image/tree/gh-pages.svg?style=svg)](https://circleci.com/gh/mapbox/leaflet-image/tree/gh-pages)\n\nExport images out of Leaflet maps without a server component, by using\nCanvas and [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing).\n\n## Requirements\n\n* Tile layer providers (OSM, MapBox, etc) must support [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing)\n* Any markers on the map must also support CORS. The default Leaflet-CDN markers\n  don't, so they aren't supported.\n* Your browser must support [CORS](http://caniuse.com/#feat=cors) and [Canvas](http://caniuse.com/#feat=canvas),\n  so `IE >= 10` with no exceptions.\n* This library **does not rasterize HTML** because **browsers cannot rasterize HTML**. Therefore,\n  L.divIcon and other HTML-based features of a map, like zoom controls or legends, are not\n  included in the output, because they are HTML.\n\n__For Leaflet < 1.0.0__: You must set `L_PREFER_CANVAS = true;` so that vector\n  layers are drawn in Canvas\n  \n__For Leaflet >= 1.0.0__: You must set `renderer: L.canvas()` for any layer that\n  you want included in the generated image. You can also set this by setting [`preferCanvas: true`](http://leafletjs.com/reference-1.0.0.html#map-prefercanvas) in your map's options.\n  \n## Plugins that will _not_ work with leaflet-image\n\n* Leaflet.label: will not work because it uses HTML to display labels.\n* Leaflet.markercluster: will not work because it uses HTML for clusters.\n\n### Usage\n\nbrowserify\n\n    npm install --save leaflet-image\n\nweb\n\n    curl https://raw.github.com/mapbox/leaflet-image/gh-pages/leaflet-image.js > leaflet-image.js\n\n### Example\n\n```js\nvar map = L.mapbox.map('map', 'YOUR.MAPID').setView([38.9, -77.03], 14);\nleafletImage(map, function(err, canvas) {\n    // now you have canvas\n    // example thing to do with that canvas:\n    var img = document.createElement('img');\n    var dimensions = map.getSize();\n    img.width = dimensions.x;\n    img.height = dimensions.y;\n    img.src = canvas.toDataURL();\n    document.getElementById('images').innerHTML = '';\n    document.getElementById('images').appendChild(img);\n});\n```\n\n### Plugin CDN\n\nleaflet-image is [available through the Mapbox Plugin CDN](https://www.mapbox.com/mapbox.js/plugins/#leaflet-image) so you don't need to download & copy it. Just include the following script tag:\n\n```html\n<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-image/v0.0.4/leaflet-image.js'></script>\n```\n\n### API\n\n```js\nleafletImage(map, callback)\n```\n\nmap is a `L.map` or `L.mapbox.map`, callback takes `(err, canvas)`.\n\n## Attribution\n\nAny images you generate from maps that require attribution - which is most, including all from commercial sources and those that include any data from OpenStreetMap - will require the same attribution as the map did. Remember to attribute.\n\n## See Also\n\n* The [Mapbox Static Image API](https://www.mapbox.com/developers/api/static/) is simpler to use\n  and faster than this approach.\n","maintainers":[{"name":"mapbox-admin","email":"accounts@mapbox.com"}],"time":{"modified":"2022-06-19T11:13:31.026Z","created":"2013-09-19T18:27:24.600Z","0.0.0":"2013-09-19T18:27:25.949Z","0.0.1":"2013-09-23T16:44:04.226Z","0.0.2":"2013-09-23T17:51:33.946Z","0.0.3":"2013-09-23T20:04:48.521Z","0.0.4":"2014-08-14T17:44:01.803Z","0.1.0":"2015-02-19T14:23:32.043Z","0.2.0":"2016-05-18T21:51:35.377Z","0.2.1":"2016-05-19T16:29:35.040Z","0.3.0":"2016-09-19T12:58:30.189Z","0.4.0":"2016-12-05T20:12:49.922Z"},"author":{"name":"Tom MacWright"},"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-image.git"},"homepage":"https://github.com/mapbox/leaflet-image#readme","keywords":["leaflet","map","image","export","canvas"],"bugs":{"url":"https://github.com/mapbox/leaflet-image/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md"}