# LayerFeature

One decoded feature: an id, its geometry and the fields its definition maps.

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

## Signature

```ts
import type { LayerFeature } from "@mapcairn/core";
 
interface LayerFeature
```

## Properties

### fields

```ts
readonly fields: Readonly<Record<string, FieldValue>>;
```

The decoded values the layer's definition maps, by field name.

### geometry

```ts
readonly geometry: LayerGeometry;
```

Where the feature is and what shape it has.

### id

```ts
readonly id: string;
```

Unique inside one load of one layer.

## See also

- [`FieldValue`](https://docs.mapcairn.com/api/core/FieldValue.md)
- [`LayerGeometry`](https://docs.mapcairn.com/api/core/LayerGeometry.md)

Source: [packages/core/src/ports/layers.ts:37](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/layers.ts#L37)
