Skip to main content

evaluateShapeStyle

Works out one polygon's or line's look from a style and the feature's fields.

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

Signature​

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

function evaluateShapeStyle(style: FeedShapeStyle, fields: Readonly<Record<string, FieldValue>>, catalogue: MessageCatalogue): ShapeLook;

Parameters​

  • style (FeedShapeStyle)
  • fields (Readonly<Record<string, FieldValue>>)
  • catalogue (MessageCatalogue)

Returns​

ShapeLook

See also​

Source: packages/core/src/layers/shapeStyle.ts:228