Appearance
图片轨迹线材质 PolylineImageTrailMaterial
- @param
| 参数名 | type | 描述 | 默认值 |
|---|---|---|---|
| options | Object | 材质配置,属性参考下表 | - |
options 属性
| 属性名 | type | 描述 | 默认值 |
|---|---|---|---|
| image | String | 图片地址 | - |
| color | String | 颜色 | Cesium.Color.fromBytes(0, 255, 255, 255) |
| speed | Number | 速度 | 1 |
| repeat | Object | 重复规则 | { x: 1, y: 1 } |
| duration | Number | 动画方向 (1.0/-1.0) | 1.0 |
- @returns
| 返回值 | type | 描述 |
|---|---|---|
| material | Object | 材质。 |
js
let options = {
color: Cesium.Color.fromCssColorString("rgba(255, 134, 27, 1)"),
speed: 10, // 速度
image: require("./test.png"),
repeat: { x: 1, y: 1 },
direction: 1.0, // 1.0表示正向,-1.0表示反向
};
let material = new CM.Material.PolylineImageTrailMaterial(options);颜色轨迹线材质 PolylineLightingTrailMaterial
- @param
| 参数名 | type | 描述 | 默认值 |
|---|---|---|---|
| options | Object | 材质配置,属性参考下表 | - |
options 属性
| 属性名 | type | 描述 | 默认值 |
|---|---|---|---|
| color | String | 颜色 | Cesium.Color.fromBytes(0, 255, 255, 255) |
| speed | Number | 速度 | 1 |
- @returns
| 返回值 | type | 描述 |
|---|---|---|
| material | Object | 材质。 |
js
let options = {
color: new Cesium.Color.fromCssColorString("rgba(255, 134, 27, 1)"),
speed: 10,
};
let material = CM.Material.PolylineLightingTrailMaterial(options);发光线材质 PolylineLightingMaterial
- @param
| 参数名 | type | 描述 | 默认值 |
|---|---|---|---|
| options | Object | 材质配置,属性参考下表 | - |
options 属性
| 属性名 | type | 描述 | 默认值 |
|---|---|---|---|
| color | String | 颜色 | Cesium.Color.fromBytes(0, 255, 255, 255) |
- @returns
| 返回值 | type | 描述 |
|---|---|---|
| material | Object | 材质。 |
js
let options = {
color: new Cesium.Color.fromCssColorString("rgba(255, 134, 27, 1)"),
};
let material = CM.Material.PolylineLightingMaterial(options);流动线材质 PolylineFlowMaterial
- @param
| 参数名 | type | 描述 | 默认值 |
|---|---|---|---|
| options | Object | 材质配置,属性参考下表 | - |
options 属性
| 属性名 | type | 描述 | 默认值 |
|---|---|---|---|
| color | String | 颜色 | Cesium.Color.fromBytes(0, 255, 255, 255) |
| speed | Number | 速度 | 1 |
| percent | Number | 动画颜色所占比例 | 0.03 |
| gradient | Number | 透明程度 | 0.1 |
- @returns
| 返回值 | type | 描述 |
|---|---|---|
| material | Object | 材质。 |
js
let options = {
color: new Cesium.Color.fromCssColorString("rgba(255, 134, 27, 1)"),
speed: 10,
percent: 0.3, // 比例
gradient: 0.3, // 透明程度
};
let material = CM.Material.PolylineFlowMaterial(options);