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

Class: PlotLayer<MapType>

A static map layer. The data are assumed to be static in time. If the data have a time component (e.g., a model forecast), an MultiPlotLayer may be more appropriate.

Example

// Create map layers from provided fields
const height_layer = new PlotLayer('height-contours', height_contours);
const wind_speed_layer = new PlotLayer('wind-speed-fill', wind_speed_fill);
const barb_layer = new PlotLayer('barbs', wind_barbs);

Extends

Type parameters

MapType extends MapLikeType

Constructors

new PlotLayer()

new PlotLayer<MapType>(id, field): PlotLayer<MapType>

Create a map layer from a field

Parameters

id: string

A unique id for this layer

field: PlotComponent<MapType>

The field to plot in this layer

Returns

PlotLayer<MapType>

Overrides

PlotLayerBase<MapType>.constructor

Source

PlotLayer.ts:45

Properties

id

readonly id: string

Inherited from

PlotLayerBase.id

Source

PlotLayer.ts:9


map

protected map: null | MapType

Inherited from

PlotLayerBase.map

Source

PlotLayer.ts:10


type

readonly type: "custom"

Inherited from

PlotLayerBase.type

Source

PlotLayer.ts:8

Methods

repaint()

protected repaint(): void

Returns

void

Inherited from

PlotLayerBase.repaint

Source

PlotLayer.ts:21