Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

270
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda