Class: default ¶
Table of contents ¶
Constructors ¶
Methods ¶
- appendTo
- init
- handleResize
- render
- getCanvasLayer
- canvasFunction
- removeLayer
- remove
- project
- unproject
- intersectsCoordinate
- getData
- setData
- updateParams
- getParams
- setWindOptions
- getWindOptions
Constructors ¶
constructor ¶
• new default(data
, options?
): default
Parameters ¶
Name | Type |
---|---|
data | any |
options | Partial <IWindOptions > |
Returns ¶
Defined in ¶
Methods ¶
appendTo ¶
▸ appendTo(map
): void
append layer to map
Parameters ¶
Name | Type |
---|---|
map | any |
Returns ¶
void
Defined in ¶
init ¶
▸ init(map
): void
init windy layer
Parameters ¶
Name | Type |
---|---|
map | any |
Returns ¶
void
Defined in ¶
handleResize ¶
▸ handleResize(): void
Returns ¶
void
Defined in ¶
render ¶
▸ render(canvas
): default
render layer
Parameters ¶
Name | Type |
---|---|
canvas | HTMLCanvasElement |
Returns ¶
Defined in ¶
getCanvasLayer ¶
▸ getCanvasLayer(): void
get canvas layer
Returns ¶
void
Defined in ¶
canvasFunction ¶
▸ canvasFunction(): HTMLCanvasElement
canvas constructor
Returns ¶
HTMLCanvasElement
Defined in ¶
removeLayer ¶
▸ removeLayer(): void
remove layer
Returns ¶
void
Defined in ¶
remove ¶
▸ remove(): void
Returns ¶
void
Defined in ¶
project ¶
▸ project(coordinate
): [number
, number
]
Parameters ¶
Name | Type |
---|---|
coordinate | [number , number ] |
Returns ¶
[number
, number
]
Defined in ¶
unproject ¶
▸ unproject(pixel
): null
| [number
, number
]
Parameters ¶
Name | Type |
---|---|
pixel | [number , number ] |
Returns ¶
null
| [number
, number
]
Defined in ¶
intersectsCoordinate ¶
▸ intersectsCoordinate(coordinate
): boolean
Parameters ¶
Name | Type |
---|---|
coordinate | [number , number ] |
Returns ¶
boolean
Defined in ¶
getData ¶
▸ getData(): undefined
| Field
get wind layer data
Returns ¶
undefined
| Field
Defined in ¶
setData ¶
▸ setData(data
, options?
): default
set layer data
Parameters ¶
Name | Type |
---|---|
data | any |
options | Partial <IField > |
Returns ¶
Defined in ¶
updateParams ¶
▸ updateParams(options?
): default
Parameters ¶
Name | Type |
---|---|
options | Partial <IOptions > |
Returns ¶
Defined in ¶
getParams ¶
▸ getParams(): Partial
<IOptions
>
Returns ¶
Partial
<IOptions
>
Defined in ¶
setWindOptions ¶
▸ setWindOptions(options
): void
Parameters ¶
Name | Type |
---|---|
options | Partial <IOptions > |
Returns ¶
void
Defined in ¶
getWindOptions ¶
▸ getWindOptions(): Partial
<IOptions
>
Returns ¶
Partial
<IOptions
>