Is there a way to turn off the double click focus on object event?

While I am loading Kml files and displaying them on the map, there is a objects double click event which zooms the camera in to the object and keeps the camera locked.

This focus action prevents from dragging the map around to other places and I don't know how to disable it.

It is OK for me to zoom in to the object, but being focus locked is somewhat hard to move on to other actions. Can anyone please tell me how to set it to disable?
Thank you.

1 Like

Hello,

You can remove this behavior with this line of code:

viewer.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);

Best,

Hannah

1 Like