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

Class: Barbs<ArrayType, MapType>

A class representing a field of wind barbs. The barbs are automatically thinned based on the zoom level on the map; the user only has to provide a thinning factor at zoom level 1.

Example

// Create a barb field with black barbs and plotting every 16th wind barb in both i and j at zoom level 1
const vector_field = new RawVectorField(grid, u_data, v_data);
const barbs = new Barbs(vector_field, {color: '#000000', thin_fac: 16});

Extends

Type parameters

ArrayType extends TypedArray

MapType extends MapLikeType

Constructors

new Barbs()

new Barbs<ArrayType, MapType>(fields, opts): Barbs<ArrayType, MapType>

Create a field of wind barbs

Parameters

fields: RawVectorField<ArrayType>

The vector field to plot as barbs

opts: BarbsOptions

Options for creating the wind barbs

Returns

Barbs<ArrayType, MapType>

Overrides

PlotComponent.constructor

Source

Barbs.ts:196

Properties

opts

readonly opts: Required<BarbsOptions>

Source

Barbs.ts:185

Methods

updateField()

updateField(fields): Promise<void>

Update the field displayed as barbs

Parameters

fields: RawVectorField<ArrayType>

The new field to display as barbs

Returns

Promise<void>

Source

Barbs.ts:212