is there a way to query top 1000 features in a featureLayer?

08-17-2022 12:28 AM
New Contributor III

Hi there!

I want to query top 1000 features from a featureLayer(like SELECT TOP in sql server)
I didn't manage to find something like this in the featureLayer documentation, anybody knows if it is possible?

And if there's a way to use it with featureLayer .definitionExpression

0 Kudos
1 Reply
Esri Regular Contributor

Hi there, 

Have you seen FeatureLayer.queryTopFeatures() method SDK doc? Seems like it is what you are looking for. This sample shows how to use this method in action. 

0 Kudos