At first time when i create entity of ployline :
var viewer = new Cesium.Viewer('cesiumContainer');
var entities = viewer.entities;
var polylines = entities.add({
name : 'Line',
position : Cesium.Cartesian3.fromDegrees(-86.0, 55.0, 500000),
polyline : {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([-86.0, 55.0, 500000]),
width : 1,
material : Cesium.Color.YELLOW
}
});
then i need to add another polyline positions when i get, so how i try :
var positions1 = new Cesium.Cartesian3.fromDegreesArrayHeights([-125, 43, 500000]);
polylines.polyline.positions = positions1;
but its not working for me can you tell me what wrong am doing. please give me solution with sample code its help.
or any other way to do.