# FeatureRef

One selected feature: its layer's id and its own id, as a tap reports them.
An alias of [`MapFeatureHit`](https://docs.mapcairn.com/api/core/MapFeatureHit.md), so a tap's hits can be selected as they
are. Two references are the same feature when both ids are equal. A store
keeps exactly those two ids, `layerId` and `featureId`, so a field that
`MapFeatureHit` gains later is not kept.

This is a type alias exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { FeatureRef } from "@mapcairn/core";
 
type FeatureRef = MapFeatureHit;
```

## See also

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

Source: [packages/core/src/ports/selection.ts:12](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/selection.ts#L12)
