Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / Contour
A field of contoured data.
// 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});
PlotComponent
<MapType
>• ArrayType extends TypedArray
• MapType extends MapLikeType
new Contour<
ArrayType
,MapType
>(field
,opts
):Contour
<ArrayType
,MapType
>
Create a contoured field
• field: RawScalarField
<ArrayType
>
The field to contour
• opts: ContourOptions
Options for creating the contours
Contour
<ArrayType
, MapType
>
readonly
opts:Required
<ContourOptions
>
getContours():
Promise
<ContourData
>
Promise
<ContourData
>
updateField(
field
):Promise
<void
>
Update the data displayed as contours
• field: RawScalarField
<ArrayType
>
The new field to contour
Promise
<void
>