Select to view content in your preferred language

Count of Features - Display as Text

127
1
12-31-2024 08:55 AM
eccdev
by
Emerging Contributor

Hi all,

I feel this is a simple thing, but how can I just take a count of features (or some filter of) save it as a variable and display it?

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

Hi there, 

You can use the queryFeatureCount() method to get the count of all features in the layer. 

This codepen shows how it can be done - https://codepen.io/U_B_U/pen/bNboMwp?editors=100