Hi, I'm trying to find a way to detect the event of feature selection of a ArcGISMapServiceLayer loaded in a map. Or get the features selected by user using the Query or Attribute Table widgets.
I don't know how to get the FeatureLayer collection of the ArcGISMapServiceLayer instance to attach their 'selection-change'/'selection-clear' events. I see the 'layersInfo' member successfully but the method 'map.getLayer(id)' always return null to these sublayer collection.
Is it possible? How I do it?
Thanks in advance
Alvaro