FeedSource
A feed: one JSON document of point features, fetched when the layer is on.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { FeedSource } from "@mapcairn/core";
interface FeedSource
Properties
cacheSeconds
readonly cacheSeconds?: number;
The least time, in seconds (at most 3600), a response is reused in this
page, for providers that send no Cache-Control max-age. Layers split
from one feed then cost one request. Nothing is stored beyond the page.
decoder
readonly decoder: string;
The name of a registered decoder, such as geojson.
fields
readonly fields: FieldMap;
Where each decoded field is read from in a raw feature.
filter
readonly filter?: FeatureFilter;
Drops features that do not match, before they are drawn or listed.
kind
readonly kind: "feed";
Tells a feed from a query source.
url
readonly url: string;
A URL template over control values and derived variables.