whoots.js

0.1.0 • Public • Published

WhooTS.js

WhooTS.js is a WMS to TMS proxy, i.e., it rewrites TMS requests into WMS requests, and so enables the usage of WMS servers in applications that only support TMS.

Based on WhooTS written in Ruby.

Install & run

npm install
node app

Usage

  • http://localhost:3000/tms/{z}/{x}/{y}/{layer}/{wms}
  • optional GET parameters with default values (directly used for WMS request):
    • format=image/png
    • version=1.1.1
    • srs=EPGS:900913 (e.g., srs=EPGS:3857, see notes below)
    • layers=
    • map=
    • styles=

Notes & limitations

  • Redirects only and does not reproject. Thus, make sure that the WMS server supports EPSG:900913 (or aliases, then use ?srs={srs})
  • No caching

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i whoots.js

    Weekly Downloads

    1

    Version

    0.1.0

    License

    GPL

    Last publish

    Collaborators

    • simon04