sphericalmercator

Transformations between the Web Mercator projection and Latitude Longitude coordinates

npm install sphericalmercator
345 downloads in the last day
898 downloads in the last week
6 616 downloads in the last month

Build Status

node-sphericalmercator provides projection math for converting between mercator meters, screen pixels (of 256x256 or configurable-size tiles), and latitude/longitude.

Compatible with nodejs packages and in-browser.

// By default, precomputes up to z30
var myProjectionObject = new SphericalMercator({
    size: 256
});
npm loves you