Skip to main content

imageMarksFor

The marks that draw shapes into an exported map image: a point is a dot, a line an open path, a polygon or circle a closed, filled path, and a shape still being drawn is dashed. A shape with nothing to draw yet (a line of one position, a circle with no radius) is left out.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { imageMarksFor } from "@mapcairn/core";

function imageMarksFor(shapes: readonly DrawShape[]): MapImageMark[];

Parameters​

  • shapes (readonly DrawShape[])

Returns​

MapImageMark[]

See also​

Source: packages/core/src/draw/image.ts:14