Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / PlotLayer
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.
// 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);
PlotLayerBase
<MapType
>• MapType extends MapLikeType
new PlotLayer<
MapType
>(id
,field
):PlotLayer
<MapType
>
Create a map layer from a field
• id: string
A unique id for this layer
• field: PlotComponent
<MapType
>
The field to plot in this layer
PlotLayer
<MapType
>
PlotLayerBase<MapType>.constructor
readonly
id:string
PlotLayerBase.id
protected
map:null
|MapType
PlotLayerBase.map
readonly
type:"custom"
PlotLayerBase.type
protected
repaint():void
void
PlotLayerBase.repaint