FlowLineMaterial

FlowLineMaterial

new FlowLineMaterial(opt)

Description:
  • 流动线材质
Example
var line3 = viewer.entities.add({
    name: "飞行弧线",
    polyline: {
      positions: points4,
      width: 15,
      material: new FlowLineMaterial({
        image: "../img/texture/rightarrow.png",
        repeat: new Cesium.Cartesian2(100, 1),
        duration: 2500
      })
    }
  });
Parameters:
Name Type Description
opt Object 基础配置
Properties
Name Type Attributes Default Description
color Cesium.Color 颜色
duration Number <optional>
1000 时间间隔(ms)
image String 材质图片
repeat Cesium.Cartesian2 <optional>
new Cesium.Cartesian2(1.0, 1.0) 平铺