Skip to content

Class: default

Hierarchy

  • any

    default

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new default(data, options?): default

Parameters

NameType
dataany
optionsPartial<IWindOptions>

Returns

default

Overrides

BMap.Overlay.constructor

Defined in

bmap/src/index.ts:44

Properties

enableMassClear

enableMassClear: boolean

Defined in

bmap/src/index.ts:42

Methods

appendTo

appendTo(map): void

append layer to map

Parameters

NameType
mapany

Returns

void

Defined in

bmap/src/index.ts:81


initialize

initialize(map): HTMLCanvasElement

Parameters

NameType
mapany

Returns

HTMLCanvasElement

Defined in

bmap/src/index.ts:89


bindEvent

bindEvent(): void

Returns

void

Defined in

bmap/src/index.ts:106


unbindEvent

unbindEvent(): void

Returns

void

Defined in

bmap/src/index.ts:119


start

start(): void

Returns

void

Defined in

bmap/src/index.ts:132


stop

stop(): void

Returns

void

Defined in

bmap/src/index.ts:138


draw

draw(): void

Returns

void

Defined in

bmap/src/index.ts:160


render

render(canvas): default

render windy layer

Parameters

NameType
canvasHTMLCanvasElement

Returns

default

Defined in

bmap/src/index.ts:184


getContainer

getContainer(): null | HTMLCanvasElement

Returns

null | HTMLCanvasElement

Defined in

bmap/src/index.ts:222


transferToMercator

transferToMercator(coordinates): [number, number]

Parameters

NameType
coordinates[number, number]

Returns

[number, number]

Defined in

bmap/src/index.ts:249


project

project(coordinate): [number, number]

Parameters

NameType
coordinate[number, number]

Returns

[number, number]

Defined in

bmap/src/index.ts:303


unproject

unproject(pixel): [number, number]

Parameters

NameType
pixel[number, number]

Returns

[number, number]

Defined in

bmap/src/index.ts:310


intersectsCoordinate

intersectsCoordinate(coordinate): boolean

Parameters

NameType
coordinate[number, number]

Returns

boolean

Defined in

bmap/src/index.ts:316


getData

getData(): undefined | Field

get wind layer data

Returns

undefined | Field

Defined in

bmap/src/index.ts:336


setData

setData(data, options?): default

set layer data

Parameters

NameType
dataany
optionsPartial<IField>

Returns

default

Defined in

bmap/src/index.ts:346


updateParams

updateParams(options?): default

Parameters

NameType
optionsPartial<IOptions>

Returns

default

Defined in

bmap/src/index.ts:363


getParams

getParams(): Partial<IOptions>

Returns

Partial<IOptions>

Defined in

bmap/src/index.ts:369


setWindOptions

setWindOptions(options): void

Parameters

NameType
optionsPartial<IOptions>

Returns

void

Defined in

bmap/src/index.ts:374


getWindOptions

getWindOptions(): Partial<IOptions>

Returns

Partial<IOptions>

Defined in

bmap/src/index.ts:386


show

show(): void

Returns

void

Defined in

bmap/src/index.ts:390


hide

hide(): void

Returns

void

Defined in

bmap/src/index.ts:398


setZIndex

setZIndex(zIndex): void

Parameters

NameType
zIndexnumber

Returns

void

Defined in

bmap/src/index.ts:404


getZIndex

getZIndex(): number

Returns

number

Defined in

bmap/src/index.ts:411

Released under the MIT License.