Hi,
I need to loop through features with already applied layer definition.
That means not to do additional query from a server, but get a FeatureSet from the client if possible.
Any help would be appreciated.
Robert,
Thank you for the response.
I see that "graphics" property has length 0.
So, what I need to do to properly loop through?
Additional question: how to loop through all features in current extent (features that currently visible on a map)?
Piterson,
If the layer is added to the map as a FeatureLayer then you can get the graphics that the FeatureLayer has using the graphics property on the FeatureLayer class.
Thank you for your response.
How we do it with FeatureLayer? What mode we need to use?
example:
mode: FeatureLayer.MODE_SNAPSHOT
If the layer is added to the map as a FeatureLayer then yes you can just get the features on the client. If the layer you are interested in is a layer from a ArcGISDynamicMapServiceLayer then the client has no information about individual features it only has an image of the mapservice from the server.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.