Skip to content

Class: WindLayer

Hierarchy

  • Layer

    WindLayer

Table of contents

Constructors

Methods

Constructors

constructor

new WindLayer(data, options): WindLayer

Parameters

NameType
dataany
optionsany

Returns

WindLayer

Overrides

Layer.constructor

Defined in

ol/src/index.ts:40

Methods

appendTo

appendTo(map): void

兼容旧版调用方式,现在可以使用以下方式添加图层:

ts
1. 常规方式
map.addLayer(windLayer);

2. setMap 会脱离 ol 地图的图层管理

layer.setMap(map);

3. 调用 appendTo

layer.appendTo(map);

Parameters

NameType
mapany

Returns

void

Defined in

ol/src/index.ts:73


getData

getData(): undefined | Field

获取图层现有数据 get wind layer data

Returns

undefined | Field

Overrides

Layer.getData

Defined in

ol/src/index.ts:116


setData

setData(data, options?): WindLayer

设置图层数据 set layer data

Parameters

NameType
dataany
optionsPartial<IField>

Returns

WindLayer

Defined in

ol/src/index.ts:127


setWindOptions

setWindOptions(options): void

设置风场图层的配置项

Parameters

NameType
optionsPartial<IOptions>

Returns

void

Defined in

ol/src/index.ts:150


getWindOptions

getWindOptions(): Partial<IOptions>

获取风场图层渲染的配置项

Returns

Partial<IOptions>

Defined in

ol/src/index.ts:168


render

render(frameState, target): any

Parameters

NameType
frameStateFrameState
targetHTMLElement

Returns

any

Overrides

Layer.render

Defined in

ol/src/index.ts:172


setMapInternal

setMapInternal(map): void

Parameters

NameType
mapPluggableMap

Returns

void

Overrides

Layer.setMapInternal

Defined in

ol/src/index.ts:183


setMap

setMap(map): void

支持以 setMap 方式添加图层

Parameters

NameType
mapPluggableMap

Returns

void

Overrides

Layer.setMap

Defined in

ol/src/index.ts:197

Released under the MIT License.