Home Reference Source
import {WindLayer} from 'mapbox-plugins/src/layers/windLayer.js'
public class | source

WindLayer

Extends:

OverlayerCanvasOverlayer → WindLayer

initWindlayer based on mapboxgl-canvas

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

radius: *

public

Method Summary

Public Methods
public

updateWind(image: *grid wind image)

render particles based on image

Inherited Summary

From class Overlayer
public

map: *

public

lnglat2pix(lng: *, lat: *): undefined[]

use Global map or this.map instance to project

public

setMap(map: *): *

private

_init()

to be overwrite in subClass

From class CanvasOverlayer
public
public

canvas: *

public
public
public

labelOn: *

public
public
public

redraw: *

public

shadow: *

public
public
public

tracks: *[]

public

xfield: *

public

yfield: *

public

getTracks(): *

public

render cached tracks to line when map moved..

public

setTracks(tracks: *array of track points.): *

set tracks coordinates of overlayer.

private

_init(shadow: boolean, keepTrack: boolean): *

private

init track ctx for each track segment rendering..

Public Constructors

public constructor() source

Override:

CanvasOverlayer#constructor

Public Members

public particles: * source

public radius: * source

public windImage: * source

Public Methods

public updateWind(image: *grid wind image) source

render particles based on image

Params:

NameTypeAttributeDescription
image *grid wind image