Skip to main content

webMercatorToWgs84

Converts a Web Mercator point (EPSG:3857) to a WGS 84 position (EPSG:4326). The latitude is clamped to ±MAX_MERCATOR_LATITUDE.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { webMercatorToWgs84 } from "@mapcairn/core";

function webMercatorToWgs84(point: WebMercatorPoint): LatLng;

Parameters​

  • point (WebMercatorPoint)

Returns​

LatLng

Throws​

  • GeometryError of kind invalid when a coordinate is not finite.

See also​

Source: packages/core/src/geometry/mercator.ts:59