# SelectionHit

One feature a query found: its layer's id and the feature itself, so the
caller can show it without loading its layer. The hit's `layerId` and the
feature's `id` are the two ids a `FeatureRef` keeps.

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

## Signature

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

## Properties

### feature

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

The feature, so it can be shown without loading its layer.

### layerId

```ts
readonly layerId: string;
```

The id of the layer that holds the feature.

## See also

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

Source: [packages/core/src/ports/featureQuery.ts:23](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/featureQuery.ts#L23)
