ShapeLabel
Text drawn on each polygon or line, filled from the feature's fields.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { ShapeLabel } from "@mapcairn/core";
interface ShapeLabel<T extends LayerTemplate = string>
Type parameters
T?(LayerTemplate)
Properties
minzoom
readonly minzoom?: number;
Labels appear from this normalised zoom, so a world view is not buried in text.
template
readonly template: T;
A template such as {name} or {name}: {population|number}.