Skip to main content

MapStyledShapes

Polygons or lines drawn with a per-shape look, such as a choropleth. A layer draws one kind of geometry; the other kind is ignored. Shapes can be tapped like points.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { MapStyledShapes } from "@mapcairn/core";

interface MapStyledShapes

Properties​

geometry​

readonly geometry: "area" | "line";

Whether the layer draws polygons (area) or lines (line).

labelMinZoom​

readonly labelMinZoom?: number;

Labels appear from this normalised zoom.

shapes​

readonly shapes: readonly MapStyledShape[];

The shapes, each with its own look.

See also​

Source: packages/core/src/ports/map.ts:187