Front Layer
Front data rendered as front lines with icons
Example


Data Properties
data
dataType: 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
getTypeType: (d: DataT) => WeatherLayers.FrontType
Accessor for the front type.
getPath
getPathType: (d: DataT) => [number, number][]
Accessor for the front path.
width
widthType: number, optional
Default: 2
Width of the line. See LineLayer getWidth.
coldColor
coldColorType: color [number, number, number, number?], optional
Default: [0, 0, 255]
Color of the line and icon for cold fronts. See LineLayer getColor.
warmColor
warmColorType: color [number, number, number, number?], optional
Default: [255, 0, 0]
Color of the line and icon for warm fronts. See LineLayer getColor.
occludedColor
occludedColorType: color [number, number, number, number?], optional
Default: [148, 0, 211]
Color of the line and icon for occluded fronts. See LineLayer getColor.
Last updated