AnsweredAssumed Answered

How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api?

Question asked by vishwasuppoor on Jul 5, 2018
Latest reply on Jul 5, 2018 by rscheitlin

I am using IdentifyTask() on a feature layer to show popups of feature points when the map is clicked. However, I need to be able to display popups for only those feature points which have a certain attribute value (eg. popups for those with the attribute {status:"Active"} should be displayed, but for those with {status:"Inactive"} should not be displayed). I could not find any properties in IdentifyParameters() which would allow me to do that. The current workaround I am using is filtering for the attributes from the returned results. But I am wondering if there is a way to specify the filter parameters within IdentifyParameters(). What I am looking is something like the where property in Query().

Outcomes