风场样式
可配置参数
风场样式可配置参数为IWindLayerStyleOptions
,主要是LWindLayer
图层的样式配置。
点渲染
因为风场默认是使用线渲染的,所以如果要使用点渲染,需要设置usePoint
为true
。
点大小
点的大小通过pointSize
来设置
使用分级规则填色
颜色可以设置为固定值,也可以使用分级规则来填色
const windStyle: IWindLayerStyleOptions = {
usePoint: true,
pointSize: 2,
color: "color-wind#res", //"white"
...
}
完整示例
点贴图
我们也支持使用图片来代替点,通过设置texture为具体的图像资源。下面示例则是使用texture来模拟涌浪的效果。
完整示例
No Comments