Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

269
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda