Skip to main content

formatLatLng

Formats a position as "lat, lng" with five decimals and a dot separator regardless of locale, for example "-26.20410, 28.04730". This is the string that is copied and shown.

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

Signature​

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

function formatLatLng(position: LatLng): string;

Parameters​

  • position (LatLng)

Returns​

string

See also​

Source: packages/core/src/format/format.ts:24