Skip to main content

SavedFeatureSet

The features a file is built from, and whether the cap cut any.

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

Signature​

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

interface SavedFeatureSet

Properties​

capped​

readonly capped: boolean;

True when kept is shorter than total.

kept​

readonly kept: readonly LayerFeature[];

The features that go in the file: the first MAX_SAVED_FEATURES at most.

total​

readonly total: number;

How many features the layer held.

See also​

Source: packages/core/src/layers/saveFeatures.ts:49