StreamLayer QueryFeature is not working.

875
1
05-11-2020 12:08 AM
RajP
by
New Contributor

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.

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

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

0 Kudos