Class: WindLayer ¶
Hierarchy ¶
Layer
↳
WindLayer
Table of contents ¶
Constructors ¶
Methods ¶
Constructors ¶
constructor ¶
• new WindLayer(data
, options
): WindLayer
Parameters ¶
Name | Type |
---|---|
data | any |
options | any |
Returns ¶
Overrides ¶
Layer.constructor
Defined in ¶
Methods ¶
appendTo ¶
▸ appendTo(map
): void
兼容旧版调用方式,现在可以使用以下方式添加图层:
ts
1. 常规方式
map.addLayer(windLayer);
2. setMap 会脱离 ol 地图的图层管理
layer.setMap(map);
3. 调用 appendTo
layer.appendTo(map);
Parameters ¶
Name | Type |
---|---|
map | any |
Returns ¶
void
Defined in ¶
getData ¶
▸ getData(): undefined
| Field
获取图层现有数据 get wind layer data
Returns ¶
undefined
| Field
Overrides ¶
Layer.getData
Defined in ¶
setData ¶
▸ setData(data
, options?
): WindLayer
设置图层数据 set layer data
Parameters ¶
Name | Type |
---|---|
data | any |
options | Partial <IField > |
Returns ¶
Defined in ¶
setWindOptions ¶
▸ setWindOptions(options
): void
设置风场图层的配置项
Parameters ¶
Name | Type |
---|---|
options | Partial <IOptions > |
Returns ¶
void
Defined in ¶
getWindOptions ¶
▸ getWindOptions(): Partial
<IOptions
>
获取风场图层渲染的配置项
Returns ¶
Partial
<IOptions
>
Defined in ¶
render ¶
▸ render(frameState
, target
): any
Parameters ¶
Name | Type |
---|---|
frameState | FrameState |
target | HTMLElement |
Returns ¶
any
Overrides ¶
Layer.render
Defined in ¶
setMapInternal ¶
▸ setMapInternal(map
): void
Parameters ¶
Name | Type |
---|---|
map | PluggableMap |
Returns ¶
void
Overrides ¶
Layer.setMapInternal
Defined in ¶
setMap ¶
▸ setMap(map
): void
支持以 setMap 方式添加图层
Parameters ¶
Name | Type |
---|---|
map | PluggableMap |
Returns ¶
void
Overrides ¶
Layer.setMap