Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / Raster
A raster (i.e. pixel) plot
// Create a raster plot with the provided color map
const raster = new Raster(wind_speed_field, {cmap: color_map});
PlotComponentFill
<ArrayType
, MapType
>• ArrayType extends TypedArray
• MapType extends MapLikeType
new Raster<
ArrayType
,MapType
>(field
,opts
):Raster
<ArrayType
,MapType
>
Create a raster plot
• field: RawScalarField
<ArrayType
>
The field to create the raster plot from
• opts: RasterOptions
Options for creating the raster plot
Raster
<ArrayType
, MapType
>
PlotComponentFill<ArrayType, MapType>.constructor
protected
cmap_mag_filter:null
|number
PlotComponentFill.cmap_mag_filter
protected
image_mag_filter:null
|number
PlotComponentFill.image_mag_filter
readonly
opts:Required
<ContourFillOptions
>
PlotComponentFill.opts
updateField(
field
):Promise
<void
>
Update the data displayed as a raster plot
• field: RawScalarField
<ArrayType
>
The new field to display as a raster plot
Promise
<void
>
PlotComponentFill.updateField