QueryFeature not getting result set in StreamLayer using ArcGIS API for Javascript 4x
streamLayerView.watch("updating", function(val){
if(!val){ // wait for the layer view to finish updating
layerView.queryFeatures(query).then(function(results){
console.log(results.features); // prints the array of client-side graphics to the console
});
}
});
Any one suggest me.
Hi there,
Based on your code snippet, you have different names for your layerView variable (streamLayerView, layerView). That probably is the root of your problem.
I updated the 4.15 SDK sample to query features from a stream layer view and it is working as expected.
-Undral