GeoHorseRaceLampMaterialProperty

new Cesium.GeoHorseRaceLampMaterialProperty(options)

跑马灯材质
Name Type Description
options Object optional 参数选项:
Name Type Default Description
color Color Color.WHITE optional 应用到跑马灯上的颜色
duration Number 1000 optional 用来决定跑马灯动画速度的值,值越大,则速度越慢,反之则越快。不能为0
image String optional 纹理贴图的路径
axisY Boolean optional 跑马灯动画是否应用在y方向,如果设为false,则应用到x方向上
repeat Cartesian2 new Cartesian2(1.0, 1.0) optional 纹理在x和y方向重复的次数
brightness Number 1.0 optional 亮度,值越大,则纹理越明亮
Example:
var line = viewer.entities.add({
		name: "Yellow dashed line with a dash pattern.",
		polyline: {
			positions: Cesium.Cartesian3.fromDegreesArray([108.96033, 34.2201134, 108.9583799, 34.2201376]),
			width: 100,
			material: new Cesium.GeoHorseRaceLampMaterialProperty({
				color: Cesium.Color.WHITE,
				duration: 1000,
				axisY: false,
				repeat: new Cesium.Cartesian2(20.0,1.0),
				image: "/geomap-api/JsCesuimDemo/resource/images/arrow.png",
				brightness: 2.0
			}),
			clampToGround: true
		}
});