Cesium Entity touch event

Hi,

I am using the sample Draggable placematk: http://analyticalgraphicsinc.github.io/cesium-google-earth-examples/examples/pinDrag.html

Each of my cesium entities has a billboard, polyline and a polygon.

My question is how can I see if the user clicked the billboard or the polyline or the polygon? and then drag only what he clicked?

Thanks.

By the way I am using 2D and I had to change the scene.screenSpaceCameraController.enableRotate to: scene.screenSpaceCameraController.enableTranslate.

Hi there,

You might find this code example helpful for dragging: https://groups.google.com/d/msg/cesium-dev/nypZFdPLjhs/rRH_NdUvhVIJ

If you update your billboard position like this, it shouldn’t affect the positioning of the rest of the entity. Hope that helps!

Best,

  • Rachel