LayerFeature
One decoded feature: an id, its geometry and the fields its definition maps.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { LayerFeature } from "@mapcairn/core";
interface LayerFeature
Properties
fields
readonly fields: Readonly<Record<string, FieldValue>>;
The decoded values the layer's definition maps, by field name.
geometry
readonly geometry: LayerGeometry;
Where the feature is and what shape it has.
id
readonly id: string;
Unique inside one load of one layer.