Class: PlotLayer<MapType>
Defined in: PlotLayer.ts:37
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), a 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
PlotLayerBase<MapType>
Type Parameters
| Type Parameter |
|---|
MapType extends MapLikeType |
Constructors
Constructor
new PlotLayer<
MapType>(id,field):PlotLayer<MapType>
Defined in: PlotLayer.ts:45
Create a map layer from a field
Parameters
| Parameter | Type | Description |
|---|---|---|
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
Properties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
id | readonly | string | PlotLayerBase.id | PlotLayer.ts:9 |
map | protected | null | MapType | PlotLayerBase.map | PlotLayer.ts:10 |
type | readonly | "custom" | PlotLayerBase.type | PlotLayer.ts:8 |
Methods
repaint()
protectedrepaint():void
Defined in: PlotLayer.ts:21
Returns
void
Inherited from
PlotLayerBase.repaint