{"_id":"whoots-js","_rev":"402675","name":"whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"time":{"modified":"2021-08-04T04:36:49.000Z","created":"2016-05-21T12:30:19.894Z","2.1.0":"2016-07-15T21:20:31.491Z","2.0.0":"2016-06-01T21:09:34.028Z","1.1.0":"2016-05-23T20:15:28.349Z","1.0.0":"2016-05-23T17:23:26.125Z","0.0.0":"2016-05-21T12:30:19.894Z"},"users":{},"author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git://github.com/mapbox/whoots-js.git"},"versions":{"2.1.0":{"name":"whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"2.1.0","main":"index.umd.js","jsnext:main":"index.js","license":"ISC","author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git://github.com/mapbox/whoots-js.git"},"bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"keywords":["WMS","tiles","EPSG:3857"],"devDependencies":{"documentation":"4.0.0-beta5","eslint":"3.0.1","rollup":"0.34.1","tap":"6.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"pretest":"rollup -f umd -n WhooTS index.js --no-indent --no-strict -o index.umd.js","lint":"eslint index.js server.js test","docs":"documentation build index.js --lint --github --format html --output docs/","test":"npm run lint && tap --cov test/*.js","start":"node server.js"},"homepage":"https://github.com/mapbox/whoots-js#readme","directories":{"doc":"docs","test":"test"},"dependencies":{},"gitHead":"2ac5f25e39aa8fa350f010f0e2d02aaa37afdc52","_id":"whoots-js@2.1.0","_shasum":"bcb201c34e0eaf335fcce5ae2cf874579a99c487","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bhousel","email":"bryan@mapbox.com"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"dist":{"shasum":"bcb201c34e0eaf335fcce5ae2cf874579a99c487","size":1796090,"noattachment":false,"key":"/whoots-js/-/whoots-js-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/whoots-js/download/whoots-js-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/whoots-js-2.1.0.tgz_1468617628263_0.9219172450248152"},"publish_time":1468617631491,"_cnpm_publish_time":1468617631491,"deprecated":"This module is now under the @mapbox namespace: install @mapbox/whoots-js instead","_hasShrinkwrap":false},"2.0.0":{"name":"whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"2.0.0","main":"index.js","license":"ISC","author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git://github.com/mapbox/whoots-js.git"},"bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"keywords":["WMS","tiles","EPSG:3857"],"devDependencies":{"documentation":"^4.0.0-beta","eslint":"^1.6.0","retire":"*","tap":"^2.1.1"},"scripts":{"retire":"retire -p","lint":"eslint *.js test","docs":"documentation build --lint --github --format html --output docs/","test":"npm run lint && tap --cov test/*.js","start":"node server.js"},"homepage":"https://github.com/mapbox/whoots-js#readme","directories":{"doc":"docs","test":"test"},"dependencies":{},"gitHead":"8df78345153100e44ba5628aad1f111ad56b57a7","_id":"whoots-js@2.0.0","_shasum":"3e7176da2144a5820549888438a705f7c4cc977d","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bhousel","email":"bryan@mapbox.com"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"dist":{"shasum":"3e7176da2144a5820549888438a705f7c4cc977d","size":600749,"noattachment":false,"key":"/whoots-js/-/whoots-js-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/whoots-js/download/whoots-js-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/whoots-js-2.0.0.tgz_1464815372760_0.9385215861257166"},"publish_time":1464815374028,"_cnpm_publish_time":1464815374028,"deprecated":"This module is now under the @mapbox namespace: install @mapbox/whoots-js instead","_hasShrinkwrap":false},"1.1.0":{"name":"whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"1.1.0","main":"index.js","license":"ISC","author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git://github.com/mapbox/whoots-js.git"},"bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"keywords":["WMS","tiles","EPSG:3857"],"devDependencies":{"documentation":"^4.0.0-beta","eslint":"^1.6.0","retire":"*","tap":"^2.1.1"},"scripts":{"retire":"retire -p","lint":"eslint *.js test","docs":"documentation build --lint --github --format html --output docs/","test":"npm run lint && tap --cov test/*.js","start":"node server.js"},"homepage":"https://github.com/mapbox/whoots-js#readme","directories":{"doc":"docs","test":"test"},"dependencies":{},"gitHead":"2775a37f4102a1f2bef303f5d7aaa1b0810defbe","_id":"whoots-js@1.1.0","_shasum":"08a1847efb67ed433d36cb24a48b75c38c61b0a9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bhousel","email":"bryan@mapbox.com"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"dist":{"shasum":"08a1847efb67ed433d36cb24a48b75c38c61b0a9","size":601036,"noattachment":false,"key":"/whoots-js/-/whoots-js-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/whoots-js/download/whoots-js-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/whoots-js-1.1.0.tgz_1464034525331_0.9465061852242798"},"publish_time":1464034528349,"_cnpm_publish_time":1464034528349,"deprecated":"This module is now under the @mapbox namespace: install @mapbox/whoots-js instead","_hasShrinkwrap":false},"1.0.0":{"name":"whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"1.0.0","main":"index.js","license":"ISC","author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git://github.com/mapbox/whoots-js.git"},"bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"keywords":["WMS","tiles","EPSG:3857"],"devDependencies":{"documentation":"^4.0.0-beta","eslint":"^1.6.0","retire":"*","tap":"^2.1.1"},"scripts":{"retire":"retire -p","lint":"eslint *.js test","docs":"documentation build --lint --github --format html --output docs/","test":"npm run lint && tap --cov test/*.js","start":"node server.js"},"homepage":"https://github.com/mapbox/whoots-js#readme","directories":{"doc":"docs","test":"test"},"dependencies":{},"gitHead":"83daa6586d95a23a932cde7226373240d7c52de4","_id":"whoots-js@1.0.0","_shasum":"f4b6434c9faee06da84be98c39894f791196c5f9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bhousel","email":"bryan@mapbox.com"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"dist":{"shasum":"f4b6434c9faee06da84be98c39894f791196c5f9","size":600698,"noattachment":false,"key":"/whoots-js/-/whoots-js-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/whoots-js/download/whoots-js-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/whoots-js-1.0.0.tgz_1464024205003_0.5560325330588967"},"publish_time":1464024206125,"_cnpm_publish_time":1464024206125,"deprecated":"This module is now under the @mapbox namespace: install @mapbox/whoots-js instead","_hasShrinkwrap":false},"0.0.0":{"name":"whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"0.0.0","main":"index.js","license":"ISC","author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git://github.com/mapbox/whoots-js.git"},"bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"keywords":["WMS","tiles","EPSG:3857"],"devDependencies":{"documentation":"^4.0.0-beta","eslint":"^1.6.0","retire":"*","tap":"^2.1.1"},"scripts":{"retire":"retire -p","lint":"eslint *.js test","docs":"documentation build --lint --github --format html --output docs/","test":"npm run lint && tap --cov test/*.js","start":"node server.js"},"homepage":"https://github.com/mapbox/whoots-js#readme","directories":{"doc":"docs","test":"test"},"dependencies":{},"gitHead":"e2be7cf2e712e50c53bdd36705a7634daafe27e8","_id":"whoots-js@0.0.0","_shasum":"6a1423e5e6ab486f518400ac4acf05a698f3fe53","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bhousel","email":"bryan@mapbox.com"},"maintainers":[{"name":"bhousel","email":"bryan@mapbox.com"}],"dist":{"shasum":"6a1423e5e6ab486f518400ac4acf05a698f3fe53","size":600295,"noattachment":false,"key":"/whoots-js/-/whoots-js-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/whoots-js/download/whoots-js-0.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/whoots-js-0.0.0.tgz_1463833818911_0.835814411053434"},"publish_time":1463833819894,"_cnpm_publish_time":1463833819894,"deprecated":"This module is now under the @mapbox namespace: install @mapbox/whoots-js instead","_hasShrinkwrap":false}},"readme":"[![npm version](https://badge.fury.io/js/whoots-js.svg)](https://badge.fury.io/js/whoots-js)\n[![Build Status](https://circleci.com/gh/mapbox/whoots-js.svg?style=svg)](https://circleci.com/gh/mapbox/whoots-js)\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\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/docs/\n","_attachments":{},"homepage":"https://github.com/mapbox/whoots-js#readme","bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"license":"ISC"}