颜色渐变纹理
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
入参对象
|
Example:
let lon = 104;
let lat = 30;
viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
lon - 0.2 + 0.6, lat, 0.0,
lon + 0.2 + 0.6, lat, 0.0,
]),
width: 20.0,
material: new GisEye.GisEyeGradientColorMaterialProperty({
color1: new Cesium.Color(0.0, 0.0, 1.0, 1.0),
color2: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
orientation: 1.0,
repeatNum: {
x:1,
y:1
},
alpha:1,
isTranslucent:true
})
}
});
viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
lon - 0.2 + 0.6, lat-0.1, 0.0,
lon + 0.2 + 0.6, lat-0.1, 0.0,
]),
width: 20.0,
material: new GisEye.GisEyeGradientColorMaterialProperty({
color1: new Cesium.Color(0.0, 0.0, 1.0, 1.0),
color2: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
orientation: 2.0,
repeatNum: {
x:1,
y:1
},
alpha:1,
isTranslucent:true
})
}
});
viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
lon - 0.2 + 0.6, lat-0.2, 0.0,
lon + 0.2 + 0.6, lat-0.2, 0.0,
]),
width: 20.0,
material: new GisEye.GisEyeGradientColorMaterialProperty({
color1: new Cesium.Color(0.0, 0.0, 1.0, 1.0),
color2: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
orientation: 3.0,
repeatNum: {
x:1,
y:1
},
alpha:1,
isTranslucent:true
})
}
});
viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
lon - 0.2 + 0.6, lat-0.3, 0.0,
lon + 0.2 + 0.6, lat-0.3, 0.0,
]),
width: 20.0,
material: new GisEye.GisEyeGradientColorMaterialProperty({
color1: new Cesium.Color(0.0, 0.0, 1.0, 1.0),
color2: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
orientation: 4.0,
repeatNum: {
x:1,
y:1
},
alpha:1,
isTranslucent:true
})
}
});