Skip to content

Class: default

Table of contents

Constructors

Methods

Constructors

constructor

new default(data, options?): default

Parameters

NameType
dataany
optionsPartial<IWindOptions>

Returns

default

Defined in

amap/src/index.ts:53

Methods

appendTo

appendTo(map): void

append layer to map

Parameters

NameType
mapany

Returns

void

Defined in

amap/src/index.ts:87


init

init(map): void

init windy layer

Parameters

NameType
mapany

Returns

void

Defined in

amap/src/index.ts:99


handleResize

handleResize(): void

Returns

void

Defined in

amap/src/index.ts:110


render

render(canvas): default

render layer

Parameters

NameType
canvasHTMLCanvasElement

Returns

default

Defined in

amap/src/index.ts:121


getCanvasLayer

getCanvasLayer(): void

get canvas layer

Returns

void

Defined in

amap/src/index.ts:151


canvasFunction

canvasFunction(): HTMLCanvasElement

canvas constructor

Returns

HTMLCanvasElement

Defined in

amap/src/index.ts:198


removeLayer

removeLayer(): void

remove layer

Returns

void

Defined in

amap/src/index.ts:252


remove

remove(): void

Returns

void

Defined in

amap/src/index.ts:268


project

project(coordinate): [number, number]

Parameters

NameType
coordinate[number, number]

Returns

[number, number]

Defined in

amap/src/index.ts:272


unproject

unproject(pixel): null | [number, number]

Parameters

NameType
pixel[number, number]

Returns

null | [number, number]

Defined in

amap/src/index.ts:278


intersectsCoordinate

intersectsCoordinate(coordinate): boolean

Parameters

NameType
coordinate[number, number]

Returns

boolean

Defined in

amap/src/index.ts:287


getData

getData(): undefined | Field

get wind layer data

Returns

undefined | Field

Defined in

amap/src/index.ts:317


setData

setData(data, options?): default

set layer data

Parameters

NameType
dataany
optionsPartial<IField>

Returns

default

Defined in

amap/src/index.ts:327


updateParams

updateParams(options?): default

Parameters

NameType
optionsPartial<IOptions>

Returns

default

Defined in

amap/src/index.ts:344


getParams

getParams(): Partial<IOptions>

Returns

Partial<IOptions>

Defined in

amap/src/index.ts:350


setWindOptions

setWindOptions(options): void

Parameters

NameType
optionsPartial<IOptions>

Returns

void

Defined in

amap/src/index.ts:355


getWindOptions

getWindOptions(): Partial<IOptions>

Returns

Partial<IOptions>

Defined in

amap/src/index.ts:367

Released under the MIT License.