Front Layer
Last updated
Last updated
Front data rendered as front lines with icons
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
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.