Over the last few days I’ve been trying to take the data from open flights and show worldwide air traffic as a series of green arcs. Attached is a screen shot of what I’ve done so far.
Right now I have one particular problem that is baffling me:
For some reason, when I generate multiple packets (PacketCesiumWriter packet = stream.openPacket(output); …do stuff…packet.close()), the resultant json outputted from the StringWriter does not have brackets around the packet objects (to make an array of objects), so I get complaints from dojo.
So far I’m manually writing the brackets in by using string concatenation ( “[”+sw.toString()+"]" ), but this doesn’t seem like a good solution. I’m sure it’s something obvious, but I can’t figure it out.
Also, the polylines sometimes disappear if I go into 2D or Columbus (though I haven’t had that issue in a few iterations, might not be a real issue).