Skip to main content

shapeEvaluator

Prepares a style once, so drawing thousands of features does not work out its classes for each one. A value that is missing or unreadable falls in the other class (categories) or the first class (steps and intervals).

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

Signature​

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

function shapeEvaluator(style: FeedShapeStyle, catalogue: MessageCatalogue): ShapeEvaluator;

Parameters​

  • style (FeedShapeStyle)
  • catalogue (MessageCatalogue)

Returns​

ShapeEvaluator

See also​

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