Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

267
Views
Cesium - Loop through each element in a CZML file

In many Cesium sandbox examples such as this one a CZML file is loaded in its entirety. Is there any way to loop through the elements in the CZML file and load them individually?

My aim is to add a checkbox for each element so I can enable/disable them at will

Currently the code that loads the data works as follows however nothing is loaded:

for(let i = 0; i <entireDataSource.entities.length; i++){
    var seriesName = entireDataSource.entities[i].id;
    
    var newLi = document.createElement('li');
    var newInput = document.createElement('input');

    newInput.setAttribute('type', 'checkbox');
    newInput.setAttribute('id', seriesName);      

    newLi.appendChild(newInput);
  
    newLi.appendChild(document.createTextNode(seriesName));
    
    checkboxList.appendChild(newLi);}

I have tried creating the checkboxes with no data and just filing them with a incremental number and that worked, so it is the data failing to load that is causing the issue.

Any idea why nothing is loaded?

Additionally - is there anyway to print info to the sandcastle console for debugging purposes?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!