{"versions":{"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":"anonymous","email":"bryan@mapbox.com"},"dist":{"shasum":"c1de4293081424da3ac30c23afa850af1019bb54","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mapbox/whoots-js/-/whoots-js-3.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"bryan@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/whoots-js-3.0.0.tgz_1486962749675_0.7803642058279365"},"directories":{},"contributors":[]},"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":"anonymous","email":"accounts+npmjs-03@mapbox.com"},"dist":{"integrity":"sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==","shasum":"497c67a1cef50d1a2459ba60f315e448d2ad87fe","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz","fileCount":7,"unpackedSize":10488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSLYoCRA9TVsSAnZWagAARj0P/0pfse2VcTtJ0XmWqexH\n/JP+yt2q5mxsooWv/t7/mhwqc6Ej0g6ho3pD0Yv3+dB6/9TIigl3NaLywbGB\nvCXE2vii8bqO84NfcoJ6jfUiy1Wa0Pd002RpOopu9Ywoq7fBmseGQXauDVjV\n+BDogn5rzujCtwJ2sVeHonZ6ojVIR3ovsJwaXZVO+bJEWdE0xbcPcolsn/o9\nb1WkZOEsQFbhrs+3G1EAm8+jptS9XAxi9cUwS4DKQa5yzjaM5vzZGlf50Ju4\nGHD73Y3oNM6f5PZIT1sXyr/z2fkQKp2LEVtwce/MaQ5BFlzYsW5c8N/RuNUJ\nM++Hcjjyab/+pWj7ZC3TTMJRv1hnQZRQtRo4HVE6BRaG8tn5WNiNH1pR3aQz\n/dEhRVkWAc+bfaj7D/7OZaRR5Lh7XFWKDekac9AxJP+TkDTgnagnw9SAHUgq\n2KhVlZMj+hy/SMT3wcmDfXMcV+gtlnaollk5X1u2Ws8pkUdundItRVI7KaNL\n4RUBoh0tRKZYSqrzqswBe32IIa7EoPCcN76WZSILj3mMP3nqwifHy4Z/B38l\n6VPYvPo+CxzUiCrPESjFtWbLBfje09uOPCXMeOMsLBdk1S12OyQ6ctiryDlq\n2VjXrxSCC7OZ4uHBjNeUKqUMumZhKEk1an0vlUPKjHytbqezyFlqpb547aNd\ntN8D\r\n=yujX\r\n-----END PGP SIGNATURE-----\r\n"},"maintainers":[{"email":"accounts@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-01@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-02@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-03@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-04@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-05@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-06@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-07@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-08@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-09@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"anonymous"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"anonymous"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/whoots-js_3.1.0_1531491880356_0.679742393682111"},"contributors":[]}},"dist-tags":{"latest":"3.1.0"},"name":"@mapbox/whoots-js","time":{"modified":"2023-07-31T06:40:22.884Z","created":"2022-01-26T19:14:23.438Z","3.0.0":"2017-02-13T05:12:30.379Z","3.1.0":"2018-07-13T14:24:40.417Z"},"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/","users":{}}