如何在铯中创建具有两个箭头的线?

问题描述

铯具有多种折线材料(polylineArrow,polylineDash,polylineGlow等),但是

我想绘制一条多段线,该多段线由线组成,这些线的头部为箭头,中心为箭头。

我认为可以通过将GLSL代码添加polylineArrowMaterial来完成。

enter image description here

enter image description here

解决方法

我只有一个想法是添加带有箭头标题的多段线而不是像这样的单多段线:

 points.forEach((x,i) => {
            if (i < points.length - 1) {
                 polylines.add({
                     positions: [points[i],points[i + 1]],width: 12.0,material: Cesium.Material.fromType('PolylineArrow',{
                     color: new Cesium.Color.fromBytes(255,255,185)
                     })
                });

        }
    });