Load multiple KMLs simultaneously

1. A concise explanation of the problem you’re experiencing.

Hello, I need to load multiple KMLs at the same time. Is this possible?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

viewer.dataSources.add(Cesium.KmlDataSource.load(‘myFile.kml’, options));

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I need to load multiple KMLs at the same time.

4. The Cesium version you’re using, your operating system and browser.

CesiumJS 1.60

Windows 7

Mozilla Firefox 68.0.2

You would just repeat that same line of code for each file you have. Did you run into any issues doing that?

I am now able to keep multiple KMLs loaded at the same time by removing this line:


Is there any method to remove a single KML, and not all? Thanks in advance.

You can use the remove method, which you can read about in the docs here:


The docs are a good source for finding what all the methods that are available on a particular class in CesiumJS are.

Thank you. I read the documentation and was able to fix the problem!