How might I go about selecting a feature layer from a graphic like 'promises.push(featureLayer1.selectFeatures(query, FeatureLayer.SELECTION_NEW));' in 4.7
You use code like this:
featureLayer1.selectFeatures(query, FeatureLayer.SELECTION_NEW, function(fs){
//fs is not the featureset from the select features method
});
Hi there,
You can use FeatureLayerView.queryFeatures + FeatureLayerView.highlight methods to replace FeatureLayer.selectFeatures.
Here are couple of samples to show you how this can be done:
Query features from a FeatureLayerView | ArcGIS API for JavaScript 4.7
Highlight features by geometry | ArcGIS API for JavaScript 4.7