createDrawReducer
Builds a drawing reducer that names the shapes it creates with labels
(the shipped English when none is given): pass a catalogue so a new shape is
called "Veelhoek 1" rather than "Polygon 1". Pure, as drawReducer.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { createDrawReducer } from "@mapcairn/core";
function createDrawReducer(labels?: Pick<MessageCatalogue, "t">): (state: DrawState, action: DrawAction) => DrawState;
Parameters
labels?(Pick<MessageCatalogue, "t">)
Returns
(state: DrawState, action: DrawAction) => DrawState