Skip to content

Class: WindLayer

Hierarchy

  • BaseLayer

    WindLayer

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WindLayer(id, data, options): WindLayer

Parameters

NameType
idstring | number
dataany
optionsany

Returns

WindLayer

Inherited from

BaseLayer.constructor

Defined in

leaflet/src/layer/Base.ts:13

Properties

options

options: any

Inherited from

BaseLayer.options

Defined in

leaflet/src/layer/Base.ts:5


_updating

_updating: boolean

Inherited from

BaseLayer._updating

Defined in

leaflet/src/layer/Base.ts:6


_layerId

_layerId: string | number

Inherited from

BaseLayer._layerId

Defined in

leaflet/src/layer/Base.ts:7


devicePixelRatio

devicePixelRatio: number

Inherited from

BaseLayer.devicePixelRatio

Defined in

leaflet/src/layer/Base.ts:8


_width

_width: number

Inherited from

BaseLayer._width

Defined in

leaflet/src/layer/Base.ts:9


_height

_height: number

Inherited from

BaseLayer._height

Defined in

leaflet/src/layer/Base.ts:10


canvas

canvas: null | HTMLCanvasElement

Inherited from

BaseLayer.canvas

Defined in

leaflet/src/layer/Base.ts:11


field

field: undefined | Field

Defined in

leaflet/src/layer/canvas.ts:7


wind

wind: null | WindCore

Defined in

leaflet/src/layer/canvas.ts:8

Methods

_createCanvas

_createCanvas(id, zIndex): HTMLCanvasElement

Parameters

NameType
idstring | number
zIndexnumber

Returns

HTMLCanvasElement

Inherited from

BaseLayer._createCanvas

Defined in

leaflet/src/layer/Base.ts:33


_reset

_reset(): void

Returns

void

Inherited from

BaseLayer._reset

Defined in

leaflet/src/layer/Base.ts:45


_onResize

_onResize(resizeEvent): void

Parameters

NameType
resizeEventResizeEvent

Returns

void

Inherited from

BaseLayer._onResize

Defined in

leaflet/src/layer/Base.ts:52


_zoomStart

_zoomStart(): void

Returns

void

Inherited from

BaseLayer._zoomStart

Defined in

leaflet/src/layer/Base.ts:60


_moveStart

_moveStart(): void

Returns

void

Inherited from

BaseLayer._moveStart

Defined in

leaflet/src/layer/Base.ts:64


_animateZoom

_animateZoom(event): void

Parameters

NameType
eventZoomAnimEvent

Returns

void

Inherited from

BaseLayer._animateZoom

Defined in

leaflet/src/layer/Base.ts:70


_resizeCanvas

_resizeCanvas(scale): void

Parameters

NameType
scalenumber

Returns

void

Inherited from

BaseLayer._resizeCanvas

Defined in

leaflet/src/layer/Base.ts:79


project

project(coordinate): [number, number]

Parameters

NameType
coordinate[number, number]

Returns

[number, number]

Inherited from

BaseLayer.project

Defined in

leaflet/src/layer/Base.ts:92


unproject

unproject(pixel): [number, number]

Parameters

NameType
pixel[number, number]

Returns

[number, number]

Inherited from

BaseLayer.unproject

Defined in

leaflet/src/layer/Base.ts:97


intersectsCoordinate

intersectsCoordinate(coordinate): boolean

Parameters

NameType
coordinate[number, number]

Returns

boolean

Inherited from

BaseLayer.intersectsCoordinate

Defined in

leaflet/src/layer/Base.ts:102


onAdd

onAdd(map): WindLayer

Parameters

NameType
mapMap

Returns

WindLayer

Inherited from

BaseLayer.onAdd

Defined in

leaflet/src/layer/Base.ts:107


_resetView

_resetView(e?): void

Parameters

NameType
e?any

Returns

void

Inherited from

BaseLayer._resetView

Defined in

leaflet/src/layer/Base.ts:128


onMoveEnd

onMoveEnd(): void

Returns

void

Inherited from

BaseLayer.onMoveEnd

Defined in

leaflet/src/layer/Base.ts:130


getEvents

getEvents(): Object

Returns

Object

Inherited from

BaseLayer.getEvents

Defined in

leaflet/src/layer/Base.ts:148


initialize

initialize(id, data, options): void

Parameters

NameType
idstring | number
dataany
optionsany

Returns

void

Overrides

BaseLayer.initialize

Defined in

leaflet/src/layer/canvas.ts:10


_redraw

_redraw(): void

Returns

void

Overrides

BaseLayer._redraw

Defined in

leaflet/src/layer/canvas.ts:21


_render

_render(): void

Returns

void

Overrides

BaseLayer._render

Defined in

leaflet/src/layer/canvas.ts:25


onRemove

onRemove(): this

Returns

this

Overrides

BaseLayer.onRemove

Defined in

leaflet/src/layer/canvas.ts:47


pickWindOptions

pickWindOptions(): void

Returns

void

Defined in

leaflet/src/layer/canvas.ts:55


getData

getData(): undefined | Field

get wind layer data

Returns

undefined | Field

Defined in

leaflet/src/layer/canvas.ts:70


setData

setData(data, options?): WindLayer

set layer data

Parameters

NameType
dataany
optionsPartial<IField>

Returns

WindLayer

Defined in

leaflet/src/layer/canvas.ts:80


setWindOptions

setWindOptions(options): void

Parameters

NameType
optionsPartial<IOptions>

Returns

void

Defined in

leaflet/src/layer/canvas.ts:95


getWindOptions

getWindOptions(): any

Returns

any

Defined in

leaflet/src/layer/canvas.ts:108

Released under the MIT License.