CZML and the hard drive

How do I load a CZML file into the Cesium browser from the hard drive?

Hi there,

The browser can’t read directly from your local machine, but you can host your files on a local server, just like Cesium needs a server to run. For instance, if my Cesium application were at localhost:8080/app.js , I could read from a czml file hosted at localhost:8080/data.czml. The path is specified relative to the page location.

Here’s a code example:

This recent thread may be of interest:

hope that helps,

  • Rachel