Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

reproject-spherical-mercator

geosquare451MIT0.1.3

Reproject geojson geometry from WGS84 to Spherical Mercator

geojson, reproject, WGS84, spherical, mercator

readme

reproject-spherical-mercator

Reproject geojson geometry from WGS84 to Spherical Mercator. In backend I am using sphericalmercator moduel to convert the coordinates from WGS84 (epsg:4326) to Spehrical Mercator (EPSG:3857) also called web mercator.

installation

npm install reproject-spherical-mercator

usage

var reproject = require('reproject-spherical-mercator');
var reprojected-geojson = reproject(wgs84-geojson);

license

This project is licensed under the terms of the MIT license.