{"name":"@mapbox/whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"3.0.0","main":"index.umd.js","jsnext:main":"index.js","license":"ISC","author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git+https://github.com/mapbox/whoots-js.git"},"keywords":["WMS","tiles","EPSG:3857"],"dependencies":{},"devDependencies":{"coveralls":"^2.11.12","documentation":"4.0.0-beta5","eslint":"^3.8.0","greenkeeper-postpublish":"^1.0.1","rollup":"0.41.4","tap":"^10.1.0"},"engines":{"node":">=4.0.0"},"scripts":{"build":"rollup -f umd -n WhooTS index.js --no-indent --no-strict -o index.umd.js","docs":"documentation build index.js --lint --github --format html --output docs/","lint":"eslint index.js server.js test","start":"node server.js","test":"npm run lint && npm run build && tap --cov test/*.js","postpublish":"greenkeeper-postpublish"},"gitHead":"acabe70494d41cf3983bfeefaf522ea4fa80e75f","bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"homepage":"https://github.com/mapbox/whoots-js#readme","_id":"@mapbox/whoots-js@3.0.0","_shasum":"c1de4293081424da3ac30c23afa850af1019bb54","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"bhousel","email":"bryan@mapbox.com"},"dist":{"shasum":"c1de4293081424da3ac30c23afa850af1019bb54","tarball":"http://registry-npm.ywwl.com/@mapbox/whoots-js/download/@mapbox/whoots-js-3.0.0.tgz","integrity":"sha512-7R135QzzIMGh2HMcDdW1gIvbSzMYpRHO7Q3Vfcf6Pwz8UEy/Td38Z6O3aD+8bsAXkhbigxIt9764MNd+PXqWKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpidy4VZS1j0qTYzYEhxGKhBUuVWjnvClcWkLMI+3NUAIgDOjxK+EOyNEHj+GN1s/35r8ZLi7X+MrGvASqdeCVMzc="}],"size":5059,"noattachment":false,"key":"/@mapbox/whoots-js/-/@mapbox/whoots-js-3.0.0.tgz"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/whoots-js-3.0.0.tgz_1486962749675_0.7803642058279365"},"directories":{},"readme":"[![npm version](https://badge.fury.io/js/%40mapbox%2Fwhoots-js.svg)](https://badge.fury.io/js/%40mapbox%2Fwhoots-js)\n[![Build Status](https://secure.travis-ci.org/mapbox/whoots-js.svg)](http://travis-ci.org/mapbox/whoots-js)\n[![Coverage Status](https://coveralls.io/repos/github/mapbox/whoots-js/badge.svg?branch=master)](https://coveralls.io/github/mapbox/whoots-js?branch=master)\n\n\n## whoots-js\n\nRequest tiles from WMS servers that support EPSG:3857.\n\nThis project is a JavaScript port of https://github.com/timwaters/whoots by Tim Waters.\n\n\n### What is it?\n\nGiven a `z/x/y` tile coordinate like `19/154308/197167`, `whoots-js` can request imagery from an EPSG:3857 supporting WMS server like this:\n\n```\nhttp://geodata.state.nj.us/imagerywms/Natural2015?\n  bbox=-8242663.382160267,4966572.349857613,-8242586.945131982,4966648.786885899\n  &format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857\n  &width=256&height=256&layers=Natural2015\n```\n\n\n### Usage\n\n```js\nvar WhooTS = require('@mapbox/whoots-js');\n\n// Get an image url for a given tile coordinate\nvar baseUrl = 'http://geodata.state.nj.us/imagerywms/Natural2015';\nvar layer = 'Natural2015';\nvar url = WhooTS.getURL(baseUrl, layer, 154308, 197167, 19);\n```\n\n\n### Server\n\nThis project includes a sample redirecting wms proxy server in `server.js`.\n\n`npm run server` will start a local server on port 8080 that redirects tile requests.\n\nValid tile requests look like:\n\n```\nhttp://localhost:8080/tms/{z}/{x}/{y}/{layer}/{endpoint}\nhttp://localhost:8080/tms/19/154308/197167/Natural2015/http://geodata.state.nj.us/imagerywms/Natural2015\n```\n\n\n### Documentation\n\nComplete API documentation is here:  http://mapbox.github.io/whoots-js/\n","publish_time":1486962750379,"_cnpm_publish_time":1486962750379,"dist-tags":{"latest":"3.1.0"}}