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 / Contour

Class: Contour<ArrayType, MapType>

A field of contoured data.

Example

// Create a contoured height field, with black contours every 30 m (assuming the height field is in 
// meters).
const contours = new Contour(height_field, {color: '#000000', interval: 30});

Extends

Type parameters

ArrayType extends TypedArray

MapType extends MapLikeType

Constructors

new Contour()

new Contour<ArrayType, MapType>(field, opts): Contour<ArrayType, MapType>

Create a contoured field

Parameters

field: RawScalarField<ArrayType>

The field to contour

opts: ContourOptions

Options for creating the contours

Returns

Contour<ArrayType, MapType>

Overrides

PlotComponent.constructor

Source

Contour.ts:89

Properties

opts

readonly opts: Required<ContourOptions>

Source

Contour.ts:79

Methods

getContours()

getContours(): Promise<ContourData>

Returns

Promise<ContourData>

Source

Contour.ts:162


updateField()

updateField(field): Promise<void>

Update the data displayed as contours

Parameters

field: RawScalarField<ArrayType>

The new field to contour

Returns

Promise<void>

Source

Contour.ts:103