Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @shitao1988/swsk-whoots-js with all npm packages installed. Try it out:

var swskWhootsJs = require("@shitao1988/swsk-whoots-js")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@shitao1988/swsk-whoots-js v3.1.1

Request tiles from WMS servers that support CGCS2000 (EPSG:4490)

This repository is a fork of mapbox/whoots-js, adding support for CGCS2000.

npm version Build Status Coverage Status


Request tiles from WMS servers that support CGCS2000 (EPSG:4490).

This project is a JavaScript port of by Tim Waters.

What is it?

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:


var WhooTS = require('@mapbox/whoots-js');

// Get an image url for a given tile coordinate
var baseUrl = '';
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:



Complete API documentation is here:

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free