# SelectedFeature

The feature whose card is open, with its layer.

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

## Signature

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

## Properties

### feature

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

The loaded feature.

### layer

```ts
readonly layer: DataLayerState;
```

The layer the feature belongs to, with its state.

## See also

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

Source: [packages/map/src/layers/useDataLayers.ts:104](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/useDataLayers.ts#L104)
