pre calculated earthradius * PI
earth radius in meter
Transformation from EPSG:4326 to EPSG:3857
Transformation from EPSG:4326 to EPSG:3857
in LatLng format
EPSG:3857/SphericalMercator projection
Transformation from EPSG:3857 to EPSG:4326
Transformation from EPSG:3857 to EPSG:4326
in EPSG:3857/SphericalMercator format
LatLng in EPSG4326 format
Code is partially translated from the OpenLayers.js project.
https://github.com/openlayers/ol3/blob/master/src/ol/proj/epsg3857projection.js