# PinCard

The content of the pin surface: a heading, the coordinates as selectable
text, "Copy coordinates" and "Clear pin" buttons, and an address lookup
that the user starts.

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

## Signature

```ts
import { PinCard } from "@mapcairn/map";
 
function PinCard(input: PinCardProps): JSX.Element;
```

## Description

The lookup sends the pin's position, rounded to about 11 m, to a third
party, so nothing is sent until "Look up address" is pressed. While it
runs the button is busy; the address, "No address found here." or an error
with "Try again" follows, and the announcer says the same. Moving the pin
puts the card back to not looked up.

The card has no position or surface of its own; the sheet or peek that
holds it provides both. Copying shows "Copied" or "Could not copy" inline
with an icon, and the announcer says the same, so neither relies on colour
or on sight alone.

## Parameters

- `{ position, onClear, onClose, headingLevel, headingRef, lookupNote, }`
- `input` (`PinCardProps`)

## Returns

`JSX.Element`

## See also

- [`PinCardProps`](https://docs.mapcairn.com/api/map/PinCardProps.md)

Source: [packages/map/src/tools/PinCard/PinCard.tsx:79](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/PinCard/PinCard.tsx#L79)
