{"id":1698,"date":"2016-12-08T01:34:38","date_gmt":"2016-12-08T01:34:38","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1698"},"modified":"2016-12-08T01:35:33","modified_gmt":"2016-12-08T01:35:33","slug":"cesium-how-to-make-an-infobox-pop-up-on-demand","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2016\/12\/cesium-how-to-make-an-infobox-pop-up-on-demand\/","title":{"rendered":"Cesium &#8211; How to make an InfoBox pop up on demand ?"},"content":{"rendered":"<pre>\r\nvar entity = new Cesium.Entity('Title to put in the infobox');\r\nentity.description = {\r\n    getValue : function() {\r\n        return 'HTML to display in the infobox';\r\n    }\r\n};\r\nviewer.selectedEntity = entity;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>var entity = new Cesium.Entity(&#8216;Title to put in the infobox&#8217;); entity.description = { getValue : function() { return &#8216;HTML to display in the infobox&#8217;; } }; viewer.selectedEntity = entity;<\/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],"tags":[],"class_list":["post-1698","post","type-post","status-publish","format-standard","hentry","category-cesiumjs"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1698","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=1698"}],"version-history":[{"count":1,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1698\/revisions"}],"predecessor-version":[{"id":1699,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1698\/revisions\/1699"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}