Skip to main content

featureRefKey

A key that is equal for two references exactly when both ids are equal, for a set or a map of references. Ids may hold any character, so the pair is encoded, not joined with a separator. Every store and every reader of one uses this key, so they cannot disagree on which references are the same.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { featureRefKey } from "@mapcairn/core";

function featureRefKey(ref: FeatureRef): string;

Parameters​

  • ref (FeatureRef)

Returns​

string

See also​

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