Skip to main content

FieldMap

Where each decoded field comes from: a field name mapped to a dotted path into a raw feature, such as properties.mag or geometry.coordinates.2. id and title are required.

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

Signature​

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

interface FieldMap

Properties​

id​

readonly id: string;

The path to a value that identifies the feature, unique in the feed.

title​

readonly title: string;

The path to the value used as the feature's name.

Index signatures​

(indexer)​

readonly [field: string]: string;

Any further decoded field a template or style reads, by name, with its path.

  • field (string)

Source: packages/core/src/layers/definition.ts:203