I think the problem is around the positions of polyline but I don't really know what to change since it worked perfectly just a few weeks ago.
I'm using Cordova and Firefox in Ubuntu for testing but this code doesn't work in SandCastle neither.
I linked my entire index.html files if you want to see more details.
Thank you so much :)
function drawLine(EntryPosition,ExitPosition){
var flighAltitude = 500;
var CartographicEntry = Cesium.Ellipsoid.WGS84.cartesianToCartographic(EntryPosition);
var CartographicExit = Cesium.Ellipsoid.WGS84.cartesianToCartographic(ExitPosition);
var lineParams = {
name : 'Tunnel',
polyline : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights([Cesium.Math.toDegrees(CartographicEntry.longitude),Cesium.Math.toDegrees(CartographicEntry.latitude), flightAltitude,
Cesium.Math.toDegrees(CartographicExit.longitude),Cesium.Math.toDegrees(CartographicExit.latitude), flightAltitude]),
width : 4,
material : new Cesium.PolylineDashMaterialProperty({
color: Cesium.Color.CYAN
})
}
};
viewer.entities.add(lineParams);
secondaryViewer.entities.add(lineParams);
}
Me and my student team are trying to develop a sort of Waze for plane pilotes, where in the long term it should be able to be used by a drone so it is piloted by its own and be able to literally dodge every building, planes, helicopters and other drones in its way.
Anyway, thank you so much for your help and concern :)
Since I'm here, do you have any idea if it is possible with Cesium to have an online server (prolly Node.js for praticity) where our mobile application takes in-time data (like positions of other planes which change every second) so we can literally see other planes moving in this app? Thank you again ;)