Cesiumjs – How to get the content of a KML tag.

Cesiumjs-phpmind-get-des

The final computed description for a KML object is available in the entity.description property. In a pickedObject, the id property is the entity (if an entity was picked) So you can retrieve it as follows:

var description = pickedObject.id.description.getValue(time);

Time is the current scene time. You can omit the time parameter if you are 100% sure the description property is a static value.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *