Skip to main content

MapStyledShape

One polygon or line of a styled shape layer.

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

Signature​

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

interface MapStyledShape

Properties​

geometry​

readonly geometry: LayerGeometry;

The polygon or line to draw.

id​

readonly id: string;

Unique among the shapes of one layer.

label​

readonly label?: string;

Text drawn on the shape, when the layer has labels and the engine can draw them.

look​

readonly look: MapShapeLook;

How it is drawn.

See also​

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