# EvidenceMap

## Overview

`EvidenceMap` is a read-only preset for a single captured coordinate: no controls, no dragging, no zooming, with the coordinate printed in monospace beside an integrity seal. The point of the component is that the position belongs to the **record**, not to the viewer.

---

## Import

```tsx
import { EvidenceMap } from 'xertica-ui/ui';
```

---

## Props

| Prop             | Type      | Default   | Description                                            |
| ---------------- | --------- | --------- | ------------------------------------------------------ |
| `position`       | `LatLng`  | required  | The captured coordinate.                               |
| `accuracyMeters` | `number`  | -         | Draws the accuracy circle and prints `±N m`.           |
| `capturedAt`     | `string`  | -         | ISO timestamp, rendered in a `<time>` element.         |
| `hash`           | `string`  | -         | Integrity digest, e.g. `"sha256:9f3c…"`.               |
| `readOnly`       | `boolean` | `true`    | Declarative only — the component is never interactive. |
| `height`         | `string`  | `'220px'` | Map height.                                            |
| `zoom`           | `number`  | `16`      | Fixed zoom.                                            |

---

## Example

```tsx
<EvidenceMap
  position={{ lat: -30.034647, lng: -51.217658 }}
  accuracyMeters={12}
  capturedAt="2026-09-04T14:32:07Z"
  hash="sha256:9f3c1a7d4e2b8c05f61a"
  readOnly
/>
```

---

## AI Rules

- **Never** add controls, drag or zoom to this component. Use `<Map>` for anything explorable — a map the reader can pan invites the impression that the location is something they are exploring rather than something that was captured.
- **Always** pass `capturedAt` and `hash` when the record has them. They are what make the view evidentiary rather than decorative.
- **Always** show `accuracyMeters` when the capture reported it. A coordinate without its accuracy overstates precision.
- **Never** recompute or reformat the coordinate for display beyond the fixed six decimal places — the printed value must match the stored record.
