Skip to main content

createDecoderRegistry

A registry with the built-in geojson decoder plus any extra ones, by name.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { createDecoderRegistry } from "@mapcairn/core";

function createDecoderRegistry(extra?: Readonly<Record<string, Decoder>>): DecoderRegistry;

Parameters​

  • extra? (Readonly<Record<string, Decoder>>)

Returns​

DecoderRegistry

See also​

Source: packages/core/src/layers/decoders.ts:161