Front Layer

Front data rendered as front lines with icons

Example

Front Layer - cold/warm/occluded weather fronts
Front Layer - stationary front

Data Properties

data

Type: DataT

Array of data objects. See Layer data.

The data type can be any object. Specific fields should be accessed or mapped using accessors below

Style Properties

getType

Type: (d: DataT) => WeatherLayers.FrontType

Accessor for the front type.

getPath

Type: (d: DataT) => [number, number][]

Accessor for the front path.

width

Type: number, optional

Default: 2

Width of the line. See LineLayer getWidth.

coldColor

Type: color [number, number, number, number?], optional

Default: [0, 0, 255]

Color of the line and icon for cold fronts. See LineLayer getColor.

warmColor

Type: color [number, number, number, number?], optional

Default: [255, 0, 0]

Color of the line and icon for warm fronts. See LineLayer getColor.

occludedColor

Type: color [number, number, number, number?], optional

Default: [148, 0, 211]

Color of the line and icon for occluded fronts. See LineLayer getColor.

Last updated