Skip to main content

FeatureRef

One selected feature: its layer's id and its own id, as a tap reports them. An alias of MapFeatureHit, 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​

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

type FeatureRef = MapFeatureHit;

See also​

Source: packages/core/src/ports/selection.ts:12