我想在我的Cesium应用程序中显示GPS跟踪日志。但是我无法找到适合工作路径的样式。我希望它看起来像什么:
目前的样子:
这是我当前设置路径样式的方式:
path : {
width : 2,
leadTime : 0,
resolution : 5,
material : {
polylineOutline : {
color : {
rgba : [255, 0, 0, 255]
}
},
},
},
我想要拥有的东西:
解决方案:
对于1.)我现在找到了一个非常相似的解决方案,这要感谢emackey:
path : {
show : true,
leadTime : 0,
trailTime : 60,
width : 2.5,
resolution : 1,
material : new Cesium.PolylineGlowMaterialProperty({
glowPower : 15,
taperPower : 0.0001,
color : Cesium.Color.fromBytes(349, 66, 68, 255)
})
}
对于2.)我仍然没有找到想要的东西。
答案 0 :(得分:0)
内置效果与您从Ayvri(以前称为Doarama)发布的第一张屏幕截图完全不同,但是,最相似的内置效果可能是在此之前添加的“锥形线”效果铯的一年:
这里是a demo。在铯窗口中单击,然后使用箭头键操纵飞机。
这些是演示中的路径设置:
#!/bin/bash
function does_lambda_exist() {
aws lambda get-function --function-name $1 > /dev/null 2>&1
if [ 0 -eq $? ]; then
echo "Lambda '$1' exists"
else
echo "Lambda '$1' does not exist"
fi
}
does_lambda_exist testJenkins
does_lambda_exist testJenkins2