autumnplot-gl

Hardware-accelerated geospatial data plotting in the browser


Project maintained by tsupinie Hosted on GitHub Pages — Theme by mattgraham

autumnplot-glDocs


autumnplot-gl / ContourOptions

Interface: ContourOptions

Properties

cmap?

optional cmap: null | ColorMap

A color map to use to color the contours. Specifying a colormap overrides the color option.

Default

null

Source

Contour.ts:25


color?

optional color: string

The color of the contours as a hex color string

Default

'#000000'

Source

Contour.ts:19


interval?

optional interval: number

The contour interval for drawing contours at regular intervals

Default

1

Source

Contour.ts:31


levels?

optional levels: null | number[]

A list of arbitrary levels to contour. This overrides the interval option.

Default

null

Source

Contour.ts:37


line_style?

optional line_style: LineStyle | (level) => LineStyle

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.

Example

level => level < 0 ? '--' : '-'

Default

'-'

Source

Contour.ts:53


line_width?

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.

Example

level => level >= 100 ? 3 : 1.5

Default

2

Source

Contour.ts:45