Can Graphics Layers be Queried? I cannot see anywhere that says that they cannot.
I know that CSV Layers cannot be queried.
In the 4.XX API a layer view can be queried for a graphics layer the same way you would query the layer view for a feature layer:
If you're using the 3.XX API, my bet would be that you could easily write a query method yourself by accessing each graphic in a graphics layer and using the geometry engine to test each one. This is not an approach that scales especially well. I'm not sure if layerView.queryFeatures scales very well either.
The simple answer is No. But you could manually query the GL by looping through it's graphics and checking the graphics attributes.
Thank you all for the feedback!
Retrieving data ...