Making geojson unpickable

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

I have a geojson file which i load as a baselayer using viewer.datasource and have several other geojsons that load on top of the baselayer. I want to make the baselayer geojson file not be selected when clicking on the polygon and being shown in the cesium info box. Is there a way to do so.

There currently isn’t a way to disable picking on a particular data source, although we have an open feature request here:

Your best bet for now would be to use drillPick (see which will return a list of all objects under the mouse, and you can filter that for the objects you want to be selectable. You can control which entity is selected programmatically by setting the following property on the viewer: