I am trying to add polylines to the map dynamically. Meaning, having a global polylineCollection() object and just adding new polylines to it at the user's request. However, each time I add a new polyline, the old one disappears (only one polyline is on the map at a time). My code is below:
var polylines = new Cesium.PolylineCollection();
in my function:
Is there a reason why I can't display two polylines at a time?
Thank you in advance,