How to implement click event on an entity?

Hi,

How to implement click event on an entity?

Steps we follow is as below

These reference docs should assist
http://cesiumjs.org/Cesium/Build/Documentation/ScreenSpaceEventHandler.html

http://cesiumjs.org/Cesium/Build/Documentation/Scene.html pick(windowPosition)

Thanks this worked. I had to dig down a bit but finally i was able to achieve what i wanted.

Thanks again…

Tejas

Would you post your solution?

Hello,

I’m not sure exactly what you’re looking for, but have you seen this demo? http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Picking.html&label=Showcases

It shows how to use a ScreenSpaceEventHandler to handle clicking on the globe or clicking on entities.

Best,

Hannah