compression of CZML file


I am loading a dynamically generated czml file (larger than 6MBs) and it takes considerable time to load.

Is there any compression tool/mechanism available for CZML like KMLs can be compressed into KMZs?


Sorry, but I don’t think there is currently support for this. You could zip up the file and add code to unzip it in your application. Cesium uses zip.js to unzip KML files.



CZML compression is “free” if you configure your server to use gzip compression. How this is done is different depending on what server you are using (IIS/Apache/node/etc…).

That being said, are you sure it’s transfer time that is the problem here?

Manually zipping/unzipping is a bad idea and should be avoided. It would actually increase load times in many cases.