{"id":1460,"date":"2015-10-21T19:24:49","date_gmt":"2015-10-21T19:24:49","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1460"},"modified":"2015-10-21T20:45:37","modified_gmt":"2015-10-21T20:45:37","slug":"cesiumjs-how-to-get-the-content-of-a-kml-tag","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2015\/10\/cesiumjs-how-to-get-the-content-of-a-kml-tag\/","title":{"rendered":"Cesiumjs &#8211; How to get the content of a KML <description> tag."},"content":{"rendered":"<p><a href=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2015\/10\/Cesiumjs-phpmind-get-des.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2015\/10\/Cesiumjs-phpmind-get-des.png\" alt=\"Cesiumjs-phpmind-get-des\" width=\"495\" height=\"442\" class=\"aligncenter size-full wp-image-1461\" srcset=\"https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2015\/10\/Cesiumjs-phpmind-get-des.png 495w, https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2015\/10\/Cesiumjs-phpmind-get-des-300x268.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><\/p>\n<p>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:<\/p>\n<pre>\r\nvar description = pickedObject.id.description.getValue(time);\r\n<\/pre>\n<p>Time is the current scene time.  You can omit the time parameter if you are 100% sure the description property is a static value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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% [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[53,27],"tags":[],"class_list":["post-1460","post","type-post","status-publish","format-standard","hentry","category-cesiumjs","category-javascript"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=1460"}],"version-history":[{"count":2,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1460\/revisions"}],"predecessor-version":[{"id":1463,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1460\/revisions\/1463"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}