Class: WindLayer ¶
Hierarchy ¶
BaseLayer
↳
WindLayer
Table of contents ¶
Constructors ¶
Properties ¶
Methods ¶
- _createCanvas
- _reset
- _onResize
- _zoomStart
- _moveStart
- _animateZoom
- _resizeCanvas
- project
- unproject
- intersectsCoordinate
- onAdd
- _resetView
- onMoveEnd
- getEvents
- initialize
- _redraw
- _render
- onRemove
- pickWindOptions
- getData
- setData
- setWindOptions
- getWindOptions
Constructors ¶
constructor ¶
• new WindLayer(id
, data
, options
): WindLayer
Parameters ¶
Name | Type |
---|---|
id | string | number |
data | any |
options | any |
Returns ¶
Inherited from ¶
BaseLayer.constructor
Defined in ¶
Properties ¶
options ¶
• options: any
Inherited from ¶
BaseLayer.options
Defined in ¶
_updating ¶
• _updating: boolean
Inherited from ¶
BaseLayer._updating
Defined in ¶
_layerId ¶
• _layerId: string
| number
Inherited from ¶
BaseLayer._layerId
Defined in ¶
devicePixelRatio ¶
• devicePixelRatio: number
Inherited from ¶
BaseLayer.devicePixelRatio
Defined in ¶
_width ¶
• _width: number
Inherited from ¶
BaseLayer._width
Defined in ¶
_height ¶
• _height: number
Inherited from ¶
BaseLayer._height
Defined in ¶
canvas ¶
• canvas: null
| HTMLCanvasElement
Inherited from ¶
BaseLayer.canvas
Defined in ¶
field ¶
• field: undefined
| Field
Defined in ¶
wind ¶
• wind: null
| WindCore
Defined in ¶
Methods ¶
_createCanvas ¶
▸ _createCanvas(id
, zIndex
): HTMLCanvasElement
Parameters ¶
Name | Type |
---|---|
id | string | number |
zIndex | number |
Returns ¶
HTMLCanvasElement
Inherited from ¶
BaseLayer._createCanvas
Defined in ¶
_reset ¶
▸ _reset(): void
Returns ¶
void
Inherited from ¶
BaseLayer._reset
Defined in ¶
_onResize ¶
▸ _onResize(resizeEvent
): void
Parameters ¶
Name | Type |
---|---|
resizeEvent | ResizeEvent |
Returns ¶
void
Inherited from ¶
BaseLayer._onResize
Defined in ¶
_zoomStart ¶
▸ _zoomStart(): void
Returns ¶
void
Inherited from ¶
BaseLayer._zoomStart
Defined in ¶
_moveStart ¶
▸ _moveStart(): void
Returns ¶
void
Inherited from ¶
BaseLayer._moveStart
Defined in ¶
_animateZoom ¶
▸ _animateZoom(event
): void
Parameters ¶
Name | Type |
---|---|
event | ZoomAnimEvent |
Returns ¶
void
Inherited from ¶
BaseLayer._animateZoom
Defined in ¶
_resizeCanvas ¶
▸ _resizeCanvas(scale
): void
Parameters ¶
Name | Type |
---|---|
scale | number |
Returns ¶
void
Inherited from ¶
BaseLayer._resizeCanvas
Defined in ¶
project ¶
▸ project(coordinate
): [number
, number
]
Parameters ¶
Name | Type |
---|---|
coordinate | [number , number ] |
Returns ¶
[number
, number
]
Inherited from ¶
BaseLayer.project
Defined in ¶
unproject ¶
▸ unproject(pixel
): [number
, number
]
Parameters ¶
Name | Type |
---|---|
pixel | [number , number ] |
Returns ¶
[number
, number
]
Inherited from ¶
BaseLayer.unproject
Defined in ¶
intersectsCoordinate ¶
▸ intersectsCoordinate(coordinate
): boolean
Parameters ¶
Name | Type |
---|---|
coordinate | [number , number ] |
Returns ¶
boolean
Inherited from ¶
BaseLayer.intersectsCoordinate
Defined in ¶
onAdd ¶
▸ onAdd(map
): WindLayer
Parameters ¶
Name | Type |
---|---|
map | Map |
Returns ¶
Inherited from ¶
BaseLayer.onAdd
Defined in ¶
_resetView ¶
▸ _resetView(e?
): void
Parameters ¶
Name | Type |
---|---|
e? | any |
Returns ¶
void
Inherited from ¶
BaseLayer._resetView
Defined in ¶
onMoveEnd ¶
▸ onMoveEnd(): void
Returns ¶
void
Inherited from ¶
BaseLayer.onMoveEnd
Defined in ¶
getEvents ¶
▸ getEvents(): Object
Returns ¶
Object
Inherited from ¶
BaseLayer.getEvents
Defined in ¶
initialize ¶
▸ initialize(id
, data
, options
): void
Parameters ¶
Name | Type |
---|---|
id | string | number |
data | any |
options | any |
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 ¶
Name | Type |
---|---|
data | any |
options | Partial <IField > |
Returns ¶
Defined in ¶
leaflet/src/layer/canvas.ts:80
setWindOptions ¶
▸ setWindOptions(options
): void
Parameters ¶
Name | Type |
---|---|
options | Partial <IOptions > |
Returns ¶
void
Defined in ¶
leaflet/src/layer/canvas.ts:95
getWindOptions ¶
▸ getWindOptions(): any
Returns ¶
any