Skip to main content

PinMarker

A dropped pin, drawn in the overlay layer and re-projected whenever the view changes. It is not drawn while it is on the far side of a globe, and on a flat map it is drawn on the copy of the world nearest the view centre. Render it inside MapOverlayLayer.

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

Signature​

import { PinMarker } from "@mapcairn/map";

function PinMarker(input: PinMarkerProps): JSX.Element | null;

Parameters​

  • { position, testId }
  • input (PinMarkerProps)

Returns​

JSX.Element | null

See also​

Source: packages/map/src/host/overlays/PinMarker.tsx:37