Hello,
I have created a featureLayerView from a polygon featureLayer (think census tracts) and I allow the user to set various attribute based filters.
I would now like to get the number of features currently shown on the screen (which seems like it would be a very straight forward thing to do).
To do this I apply a spatial query to the featureLayerView using the extent from the mapView for query geometry.
The problem is I sometimes get the correct answer and sometimes don't (the worst kind of problem). Looking at the features that are returned, sometimes features are well out of current view (e.g. closest point on the polygon is probably a few miles outside of the relatively zoomed in view).
All data, as well as the mapview are in web Mercator.
Any thoughts would be greatly appreciated,
Thanks, Gary