Skip to main content

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​

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

interface SelectionHit

Properties​

feature​

readonly feature: LayerFeature;

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

layerId​

readonly layerId: string;

The id of the layer that holds the feature.

See also​

Source: packages/core/src/ports/featureQuery.ts:23