# GeoMapLabels (@salmonui/charts/geo-map)

> The GeoMapLabels interface of @salmonui/charts/geo-map.

Canonical: https://salmonui.dev/docs/reference/charts/geo-map/GeoMapLabels

```ts
import type { GeoMapLabels } from '@salmonui/charts/geo-map';
```

Entry index: https://salmonui.dev/docs/reference/charts/geo-map (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/geo-map.md).

## Reference

Kind: interface

```ts
interface GeoMapLabels {
    readonly field?: string | undefined;
    readonly overflow?: 'none' | 'hide' | 'trim' | undefined;
    readonly overlap?: 'hide' | 'show' | undefined;
    readonly render?: ((ctx: {
        readonly key: string;
        readonly name: string;
        readonly text: string;
        readonly datum: unknown;
    }) => unknown) | undefined;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field?: string \| undefined;` | optional | Field of the joined data row or of the feature properties (default the shape name). |
| `overflow` | `readonly overflow?: 'none' \| 'hide' \| 'trim' \| undefined;` | optional | `'hide'` drops labels wider than their shape, `'trim'` shortens them with an ellipsis. |
| `overlap` | `readonly overlap?: 'hide' \| 'show' \| undefined;` | optional | `'hide'` drops a label that overlaps an earlier one (default). |
| `render` | `readonly render?: ((ctx: {     readonly key: string;     readonly name: string;     readonly text: string;     readonly datum: unknown; }) => unknown) \| undefined;` | optional | Custom label content centered on the shape (replaces the text). |
