# ShownSelection

A selected reference whose feature can be shown, with the definition of the layer that holds it.

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

## Signature

```ts
import type { ShownSelection } from "@mapcairn/map";
 
interface ShownSelection
```

## Properties

### definition

```ts
readonly definition: LayerDefinition;
```

The definition of the layer that holds the feature.

### feature

```ts
readonly feature: LayerFeature;
```

The loaded feature.

### ref

```ts
readonly ref: FeatureRef;
```

The layer and feature ids that were selected.

### status

```ts
readonly status: "shown";
```

Always `shown`; tells it from a [`HiddenSelection`](https://docs.mapcairn.com/api/map/HiddenSelection.md).

## See also

- [`LayerDefinition`](https://docs.mapcairn.com/api/core/LayerDefinition.md)
- [`LayerFeature`](https://docs.mapcairn.com/api/core/LayerFeature.md)
- [`FeatureRef`](https://docs.mapcairn.com/api/core/FeatureRef.md)

Source: [packages/map/src/layers/selectionResolve.ts:13](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/selectionResolve.ts#L13)
