I am using the ArcGIS API for JavaScript 3.32 for the development of widgets in Web AppBuilder. I have created a locally hosted GeoJson Feature Collection and instantiated it as a FeatureLayer in code (see code snippet below).
The issue I am having is that after the FeatureLayer is displayed on my Web AppBuilder map, I an unable to select it using the Select Widget unlike other MapService layers (that are comprised of shapefiles - see screenshot below). Any information on why this is the case and how to make the FeatureLayer selectable would be helpful.
// Add geojon layer code here