Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / Barbs
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.
// 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});
PlotComponent
<MapType
>• ArrayType extends TypedArray
• MapType extends MapLikeType
new Barbs<
ArrayType
,MapType
>(fields
,opts
):Barbs
<ArrayType
,MapType
>
Create a field of wind barbs
• fields: RawVectorField
<ArrayType
>
The vector field to plot as barbs
• opts: BarbsOptions
Options for creating the wind barbs
Barbs
<ArrayType
, MapType
>
readonly
opts:Required
<BarbsOptions
>
updateField(
fields
):Promise
<void
>
Update the field displayed as barbs
• fields: RawVectorField
<ArrayType
>
The new field to display as barbs
Promise
<void
>