Skip to main content

CentreCrosshairProps

Props for CentreCrosshair.

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

Signature​

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

interface CentreCrosshairProps

Properties​

at​

readonly at?: {
readonly x: number;
readonly y: number;
};

Where to draw it, in pixels from the map's top left. Defaults to the centre of the whole map; a tool whose panel covers part of the map passes the middle of what is left.

testId​

readonly testId?: string;

Sets data-testid on the crosshair.

Source: packages/map/src/host/overlays/CentreCrosshair.tsx:11