Select entire CZML document

Hi,

I am loading several (indepedent) CZML documents containing polylines, billboards and points.

I nowwant to change the color and/or width of all the polylines belonging to the same document as a clicked entity.

Any hints are most welcome.

Klaus

Hi Klaus,

You’ll want to load your CZML document using CzmlDataSource, then iterate through the entities from that dataSource and apply custom styling to them. It should look similar to this example: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=GeoJSON%20and%20TopoJSON.html&label=Showcases

Hope that helps!

  • Rachel

Sorry for not being clear enough, Rachel.

My problem is retrieving the parent document from the entity being selected by a mouse click.

Klaus

Hi Rachel,

your hint actually pointed me in the right direction: Entity#EntitiyColection seems to be the link back the Root ‘Document’ I was looking for.

Thanks for your help,

Klaus