opening kml file with gx:track on html file

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

Hi!

I’m trying to open a kml file with gx:track, i use the bikeRide.kml sample but it doesn’t appear on the window.

I tried to import the cesium sandcastle load kml exemple on html but it doesen’t work. I don’t know what to do now.

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

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

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

I would check to see if there are any errors in the browser console. It may be unable to find the KML file.

Are you opening the HTML file just by double clicking it, or do you have a local server running?

i forgot to mention that. There is no error on the console, the path is correct and i’am hosting a local server to open the file.

Why do you have a “viewer.dataSources.removeAll();” line in there? It’s possible it’s adding it and immediately removing it from the scene.