How Can I get all features [graphics] without using queryFeatures in 4.12?

443
2
07-30-2019 10:41 AM
RoelGarcia
New Contributor III

I want to get all the features [grahics] from feature layer without using the queryFeatures as same of the ArcGIS JS API 3.x that the layer contains array of graphics

thanks,
Roel

Tags (1)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Roel,

   No in 4.x there is no graphics property.

0 Kudos
KristianEkenes
Esri Regular Contributor

Hi Roel,

FeatureLayer.queryFeatures() is the only way to get graphics in a client-side FeatureLayer in 4.12. This ensures consistency when working with features across all relevant layer types in the JS API whether fetching from the server or client.