How to forbid the allowPicking of the customDataSource?

1. A concise explanation of the problem you’re experiencing.

I used the ‘CustomDataSource’ to add some entities, and I want to forbid the ‘allowPicking’ of the CustomDataSource. In addition, I didn’t want to set the selectionIndictor false when initialize the viewer because other entities still needed to be selected.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you’re using, your operating system and browser.

1.40

Thanks for the help!

Hi Rick,

There’s no way I can find to disable picking on the Entity level. You can do so on the Primitive level however.

If you don’t want to dig in and use primitives, we have a GitHub issue open for improving how the selection indicator can be used, and here’s a thread that discusses some workarounds in the meantime.

Thanks!

Gabby