new Cesium.GeoTrailingMaterialProperty(options)
拖尾材质
Name |
Type |
Description |
options |
Object
|
optional
参数选项
Name |
Type |
Default |
Description |
color |
Color
|
"ragb(255,0,0,0.1)"
|
optional
应用到拖尾轨迹的颜色 |
image |
String
|
|
optional
拖尾图片的路径 |
speed |
Number
|
5
|
optional
决定拖尾运动速度的值,值越大,速度越快,反正则越慢,不能为0 |
trailLength |
Number
|
100
|
optional
决定拖尾的大小,值越大,拖尾越长,值越小,拖尾越小 |
|
Example:
var blueTrailing = viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArray([
-100,40,-70,35]),
width: 5,
material : new Cesium.GeoTrailingMaterialProperty({
image:"light12.png",
speed:2,
color:"blue",
trailLength:100,
}),
}
});