{"id":1446,"date":"2015-10-05T17:57:11","date_gmt":"2015-10-05T17:57:11","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1446"},"modified":"2015-10-05T17:57:40","modified_gmt":"2015-10-05T17:57:40","slug":"cesiumjs-how-to-get-the-the-coordinate-of-a-kml-point","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2015\/10\/cesiumjs-how-to-get-the-the-coordinate-of-a-kml-point\/","title":{"rendered":"Cesiumjs &#8211; How to get the the coordinate of a KML point?"},"content":{"rendered":"<pre>\r\n\r\nvar handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);\r\nhandler.setInputAction(function(click) {\r\n    var pickedObject = viewer.scene.pick(click.position);\r\n    if (Cesium.defined(pickedObject)) {\r\n        console.log(pickedObject.id.position.getValue(viewer.clock.currentTime));\r\n    }\r\n}, Cesium.ScreenSpaceEventType.LEFT_CLICK);\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>var handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas); handler.setInputAction(function(click) { var pickedObject = viewer.scene.pick(click.position); if (Cesium.defined(pickedObject)) { console.log(pickedObject.id.position.getValue(viewer.clock.currentTime)); } }, Cesium.ScreenSpaceEventType.LEFT_CLICK);<\/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-1446","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\/1446","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=1446"}],"version-history":[{"count":2,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1446\/revisions"}],"predecessor-version":[{"id":1448,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1446\/revisions\/1448"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}