
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@mapbox/whoots-js
Advanced tools
Request tiles from WMS servers that support EPSG:3857.
This project is a JavaScript port of https://github.com/timwaters/whoots by Tim Waters.
Given a z/x/y
tile coordinate like 19/154308/197167
, whoots-js
can request imagery from an EPSG:3857 supporting WMS server like this:
http://geodata.state.nj.us/imagerywms/Natural2015?
bbox=-8242663.382160267,4966572.349857613,-8242586.945131982,4966648.786885899
&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857
&width=256&height=256&layers=Natural2015
var WhooTS = require('@mapbox/whoots-js');
// Get an image url for a given tile coordinate
var baseUrl = 'http://geodata.state.nj.us/imagerywms/Natural2015';
var layer = 'Natural2015';
var url = WhooTS.getURL(baseUrl, layer, 154308, 197167, 19);
This project includes a sample redirecting wms proxy server in server.js
.
npm run server
will start a local server on port 8080 that redirects tile requests.
Valid tile requests look like:
http://localhost:8080/tms/{z}/{x}/{y}/{layer}/{endpoint}
http://localhost:8080/tms/19/154308/197167/Natural2015/http://geodata.state.nj.us/imagerywms/Natural2015
Complete API documentation is here: http://mapbox.github.io/whoots-js/
3.1.0
jsnext:main
with now standard module
([#74])FAQs
Request tiles from WMS servers that support EPSG:3857
The npm package @mapbox/whoots-js receives a total of 916,909 weekly downloads. As such, @mapbox/whoots-js popularity was classified as popular.
We found that @mapbox/whoots-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.