Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / ContourOptions
optional
cmap:null
|ColorMap
A color map to use to color the contours. Specifying a colormap overrides the color option.
null
optional
color:string
The color of the contours as a hex color string
'#000000'
optional
interval:number
The contour interval for drawing contours at regular intervals
1
optional
levels:null
|number
[]
A list of arbitrary levels to contour. This overrides the interval
option.
null
The style to use for the line. This can be either a LineStyle or a function that takes a contour level as a number and returns a LineStyle. This can be used to vary the contours by value.
level => level < 0 ? '--' : '-'
'-'
optional
line_width:number
| (level
) =>number
The width of the line in pixels. This could be either a number or a function that takes a contour level as a number and returns a line width. This can be used to vary the width of the contours by value.
level => level >= 100 ? 3 : 1.5
2