Skip to main content

CursorCoordinatesProps

Props for CursorCoordinates.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { CursorCoordinatesProps } from "@mapcairn/map";

interface CursorCoordinatesProps

Properties​

latlng​

readonly latlng: LatLng | null;

The position under the pointer, or null to show nothing. The app passes null on touch devices, where there is no hovering pointer.

zoom​

readonly zoom?: number;

The map's zoom level in the 256 px tile convention, shown beside the position as "z 12.4", or undefined to leave it out.

See also​

Source: packages/map/src/chrome/MapReadout/MapReadout.tsx:179