Skip to main content

mercatorProject

Projects a position to Web Mercator world pixels at a normalised zoom, with the origin at the top-left of the world.

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

Signature​

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

function mercatorProject(position: LatLng, normalisedZoom: number): PixelPoint;

Parameters​

  • position (LatLng)
  • normalisedZoom (number)

Returns​

PixelPoint

See also​

Source: packages/core/src/zoom/zoom.ts:69