AnsweredAssumed Answered

Is there any way to get a count of the number of features in a FeatureLayer?

Question asked by jquinada on Dec 19, 2016
Latest reply on Dec 20, 2016 by jquinada

I have a FeatureLayer map service from which I would like to get a count of the number of features. I would have thought such a thing would be a basic kind of functionality, but looking through the Javascript API for FeatureLayer, I can find nothing that looks like it does that. Unless I'm missing something?

 

What I would like to do is something like this:

var myLayer = new FeatureLayer("service url here with maybe a filter");

var count = myLayer.count;

 

Seems to be a basic thing to have - right? I guess not?

Outcomes