{"_id":"@mapbox/whoots-js","_rev":"402702","name":"@mapbox/whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"}],"time":{"modified":"2021-08-04T04:36:56.000Z","created":"2017-02-13T05:12:30.379Z","3.1.0":"2018-07-13T14:24:40.417Z","3.0.0":"2017-02-13T05:12:30.379Z"},"users":{},"author":{"name":"Bryan Housel","email":"bryan@mapbox.com"},"repository":{"type":"git","url":"git+https://github.com/mapbox/whoots-js.git"},"versions":{"3.1.0":{"name":"@mapbox/whoots-js","description":"Request tiles from WMS servers that support EPSG:3857","version":"3.1.0","main":"index.js","module":"index.mjs","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":"^3.0.0","documentation":"4.0.0-beta5","eslint":"^5.0.0","rollup":"0.60.0","tap":"^12.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"build":"rollup -f umd -n WhooTS index.mjs --no-indent --no-strict -o index.js","docs":"documentation build index.mjs --lint --github --format html --output docs/","lint":"eslint index.mjs server.js test","start":"node server.js","test":"npm run lint && npm run build && tap --cov test/*.js"},"gitHead":"1eac5ecde1fd4c89ada697685accde5e93f33fea","bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"homepage":"https://github.com/mapbox/whoots-js#readme","_id":"@mapbox/whoots-js@3.1.0","_npmVersion":"6.1.0","_nodeVersion":"6.7.0","_npmUser":{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},"dist":{"shasum":"497c67a1cef50d1a2459ba60f315e448d2ad87fe","size":3595,"noattachment":false,"key":"/@mapbox/whoots-js/-/@mapbox/whoots-js-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/whoots-js/download/@mapbox/whoots-js-3.1.0.tgz"},"maintainers":[{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whoots-js_3.1.0_1531491880356_0.679742393682111"},"_hasShrinkwrap":false,"publish_time":1531491880417,"_cnpm_publish_time":1531491880417},"3.0.0":{"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","size":5059,"noattachment":false,"key":"/@mapbox/whoots-js/-/@mapbox/whoots-js-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/whoots-js/download/@mapbox/whoots-js-3.0.0.tgz"},"maintainers":[{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/whoots-js-3.0.0.tgz_1486962749675_0.7803642058279365"},"directories":{},"publish_time":1486962750379,"_cnpm_publish_time":1486962750379,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/mapbox/whoots-js#readme","bugs":{"url":"https://github.com/mapbox/whoots-js/issues"},"license":"ISC"}