直接跳到内容
本页目录

Velocity

To visualize the direction and intensity of arbitrary velocities

基础用法

API

属性

属性名说明类型默认值必填备注
data速度场数据源Object-必须包含速度场数据
name图层名称string''-
zonal_speed纬向速度变量名string''数据源中的字段名
meridional_speed经向速度变量名string''数据源中的字段名
latitude_dimension纬度维度名string''数据源中的纬度字段
longitude_dimension经度维度名string''数据源中的经度字段
display_values是否显示悬停数值booleantrue-
display_options显示配置选项Object{velocity_type: 'Global Wind',display_position: 'bottomleft',display_empty_string: 'No wind data',angle_convention: 'bearingCW',speed_unit: 'kts'}支持多种显示配置
min_velocity最小速度值number0用于颜色标尺
max_velocity最大速度值number10用于颜色标尺
velocity_scale速度缩放系数number0.005控制粒子动画
color_scale自定义颜色标尺Array<string>[]十六进制/RGB颜色数组

事件

事件名说明参数
---

插槽

插槽名说明
--

方法

方法名说明参数返回值
----

ref: https://ipyleaflet.readthedocs.io/en/latest/layers/velocity.html

src/examples/vleaflet/layers/Velocity

Velocity已经加载完毕