decodeDetail
Decodes a detail response (such as an event's affected area) and keeps its lines and polygons.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { decodeDetail } from "@mapcairn/core";
function decodeDetail(definition: LayerDefinition, raw: unknown, decoders: DecoderRegistry): LayerFeature[];
Parameters
definition(LayerDefinition)raw(unknown)decoders(DecoderRegistry)
Returns
LayerFeature[]
Throws
LayerErrorinvalidwhen it cannot be decoded (or the layer has no detail), andemptywhen it has no shape.