Polyline Rendering issue

1. A concise explanation of the problem you're experiencing.

For some reason the polyline is connected in a different way to the way it is constructed.

[Add IMG HERE]

[code]
    this.updateHistory = (function(position) {
        var positionCart = Cesium.Cartesian3.fromRadians(position.longitude, position.latitude, position.altitude_meters);

        this.positionQueue.push(positionCart);
        
        this.debugLabelCount++;
        
        this.debugLabels.add({
            position : positionCart,
            text : "P: "+this.debugLabelCount,
            pixelOffset: new Cesium.Cartesian2(10, 0),
            verticalOrigin: Cesium.VerticalOrigin.CENTER,
            /*distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0.0, 10.0e6),*/
            fillColor: Cesium.Color.WHITE,
            style: Cesium.LabelStyle.FILL_AND_OUTLINE,
            outlineWidth: 3.0,
            font: 'bold 9px sans-serif'
        });
    });

scene.preUpdate.addEventListener(function(scene, time) {
            map.positionQueue.forEach(function (pos, index)
            {
                map.positionHistory.push(pos);
            });
            
            map.positionQueue = ;
        });
[/code]

I am using version 1.48 and Google Chrome.

Looks like your image didn’t upload. Can you try again? If it’s easier, recreating the example on Sandcastle (https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/) helps too.