1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- {
- "manifest": {
- "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": "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"
- },
- "_registry": "npm",
- "_loc": "/home/jovyan/.cache/yarn/v6/npm-@mapbox-whoots-js-3.1.0-497c67a1cef50d1a2459ba60f315e448d2ad87fe-integrity/node_modules/@mapbox/whoots-js/package.json",
- "readmeFilename": "README.md",
- "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",
- "licenseText": "ISC License\n\nCopyright (c) 2017, Mapbox\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n"
- },
- "artifacts": [],
- "remote": {
- "resolved": "https://registry.yarnpkg.com/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz#497c67a1cef50d1a2459ba60f315e448d2ad87fe",
- "type": "tarball",
- "reference": "https://registry.yarnpkg.com/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz",
- "hash": "497c67a1cef50d1a2459ba60f315e448d2ad87fe",
- "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==",
- "registry": "npm",
- "packageName": "@mapbox/whoots-js",
- "cacheIntegrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q== sha1-SXxnoc71DRokWbpg8xXkSNKth/4="
- },
- "registry": "npm",
- "hash": "497c67a1cef50d1a2459ba60f315e448d2ad87fe"
- }
|