Skip to main content

metresPerPixel

Ground resolution at a latitude and normalised zoom, in metres per pixel. The single implementation used by the scale bar, the accuracy circle and measurement, on every engine.

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

Signature​

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

function metresPerPixel(latitude: number, normalisedZoom: number): number;

Parameters​

  • latitude (number)
  • normalisedZoom (number)

Returns​

number

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