DetailSource
A second source fetched only when someone asks for it on one feature, such
as an event's affected area. Its URL comes from a field of that feature,
so it is checked against origins before any request is made.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { DetailSource } from "@mapcairn/core";
interface DetailSource
Properties
colour
readonly colour: PaletteSlot;
How the polygons and lines are drawn.
dataCost
readonly dataCost: DefinitionText;
Roughly how much one request costs, such as about 300 KB.
decoder
readonly decoder: string;
The name of the registered decoder that reads the detail response.
label
readonly label: DefinitionText;
The button label, such as Show affected area.
origins
readonly origins: readonly string[];
The only https origins the URL may have.
urlField
readonly urlField: string;
The decoded field that holds the URL.