Select to view content in your preferred language

Count featurelayer attributes displayed in a map

2389
10
Jump to solution
01-14-2014 03:32 AM
VikasNeekhra
Emerging Contributor
I have created a basemap and then created a featureLayer. Now I have to count one of the featureLayer attributes value when moving the map and render it in some part the html page using innerHTML.

Suppose on onLoad of a page we get 100 featureLayers, now when I move the map a little bit up then the featureLayer will be 40, so I have to count that and render that value in a page. So whenever we move the map then we have to count the featureLayer displayed in the screen(map) and render it.

Please help in suggesting how we can achieve this, any suggestion will be highly appreciated.

Thanks,
Vikas
0 Kudos
10 Replies
VikasNeekhra
Emerging Contributor
Thanks Johnathan! It worked...

Also thanks to all the responses I get on this.

Thanks again!
0 Kudos