Converts the Mercator 3857 longitude and latitude into the WGS84 longitude and latitude, and vice versa.
Method | Description | Type | Return Value |
|---|---|---|---|
epsgFromLatLng(latLng) | Converts the WGS84 longitude and latitude into the Mercator 3857 longitude and latitude. | {lng: Number, lat: Number} | [lng, lat] |
epsgToLatLng(coordinate) | Converts the Mercator 3857 longitude and latitude into the WGS84 longitude and latitude. | [lng, lat] | {lng: Number, lat: Number} |