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

Class: Raster<ArrayType, MapType>

A raster (i.e. pixel) plot

Example

// Create a raster plot with the provided color map
const raster = new Raster(wind_speed_field, {cmap: color_map});

Extends

Type parameters

ArrayType extends TypedArray

MapType extends MapLikeType

Constructors

new Raster()

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

Create a raster plot

Parameters

field: RawScalarField<ArrayType>

The field to create the raster plot from

opts: RasterOptions

Options for creating the raster plot

Returns

Raster<ArrayType, MapType>

Overrides

PlotComponentFill<ArrayType, MapType>.constructor

Source

Fill.ts:175

Properties

cmap_mag_filter

protected cmap_mag_filter: null | number

Inherited from

PlotComponentFill.cmap_mag_filter

Source

Fill.ts:65


image_mag_filter

protected image_mag_filter: null | number

Inherited from

PlotComponentFill.image_mag_filter

Source

Fill.ts:64


opts

readonly opts: Required<ContourFillOptions>

Inherited from

PlotComponentFill.opts

Source

Fill.ts:58

Methods

updateField()

updateField(field): Promise<void>

Update the data displayed as a raster plot

Parameters

field: RawScalarField<ArrayType>

The new field to display as a raster plot

Returns

Promise<void>

Overrides

PlotComponentFill.updateField

Source

Fill.ts:183