This repository is archived and no longer maintained. The code has been moved to https://github.com/uber-web/math.gl.
viewport-mercator-project | Docs
Projection and camera utilities supporting the Web Mercator Projection. At its core this is a utility for converting to and from map coordinates (i.e. latitude, longitude) to screen coordinates and back.
Who is this for?
Specifically built for use with deck.gl and react-map-gl, but could be useful for any web mapping application that wants to support perspective enabled Web Mercator Projections with floating point zoom levels.