Skip to main content

MapShapes

Polygons and lines drawn on request, such as an event's affected area.

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

Signature​

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

interface MapShapes

Properties​

colour​

readonly colour: string;

A hex colour for the lines and a translucent fill.

geometries​

readonly geometries: readonly LayerGeometry[];

The polygons and lines to draw, in one look.

lineWidth​

readonly lineWidth?: number;

The width of lines and outlines, in CSS pixels. Defaults to 2.

See also​

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