Select to view content in your preferred language

get FeatureLayer Graphics without Query

378
2
11-19-2023 07:47 AM
Guy_srb
Regular Contributor

Hi!

I want to get access to the graphics of a feature layer, without quering the layer(essentialy like a feature table).

Is there such a thing?

0 Kudos
2 Replies
ReneRubalcava
Honored Contributor

Take a look at the FeatureLayerView and client-side queries samples in the doc.

https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query-geometry/

This will let you get the features that are currently in view. Be sure to note the limitations.

0 Kudos
Guy_srb
Regular Contributor

Thank you Rene,

There is one limitation that is a bit problematic, when excuting a query against a FeatureLayerView I get only the features that are rendered on the current extent of the map:

"The results of the same query could be different when executed at different scales. This also means that geometries returned from any layerView query will likewise be at the same scale resolution of the view".

I want to access the FeatureLayer data to present it(like a FeatureTable, but in a different ui), is it possible?

 

 

0 Kudos