# webMercatorToWgs84

Converts a Web Mercator point (EPSG:3857) to a WGS 84 position
(EPSG:4326). The latitude is clamped to ±[`MAX_MERCATOR_LATITUDE`](https://docs.mapcairn.com/api/core/MAX_MERCATOR_LATITUDE.md).

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

## Signature

```ts
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

- [`WebMercatorPoint`](https://docs.mapcairn.com/api/core/WebMercatorPoint.md)
- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)

Source: [packages/core/src/geometry/mercator.ts:59](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/geometry/mercator.ts#L59)
