new FlyLineMaterial(opt)
- Description:
Example
var lineEntity = viewer.entities.add({
name: '',
polyline: {
positions: linepositions,
width: 5,
clampToGround: true,
material: new FlyLineMaterial({ //动画线材质
color: Cesium.Color.RED,
duration: 3000,
image: "../img/texture/glow.png",
repeat: new Cesium.Cartesian2(1, 1) //平铺
}),
}
});
Parameters:
Name |
Type |
Description |
opt |
Object
|
基础配置
Properties
Name |
Type |
Attributes |
Default |
Description |
color |
Cesium.Color
|
|
|
颜色 |
duration |
Number
|
<optional>
|
1000
|
时间间隔(ms) |
image |
String
|
|
|
材质图片 |
|