Basically I am modifying the Select features sample to incorporate multiple feature layers. What is the code to get the name of the layer that would be selected during a query?For example in the following code if (uid != -1) {
g = gLayer.getGraphic(uid);
if (g!= null && g.getGeometry() != null) {
fLayer.clearSelection();
Query q = new Query();
// optional
q.setReturnGeometry(true);
q.setMaxFeatures(1);
q.setInSpatialReference(mapView.getSpatialReference());
q.setGeometry(g.getGeometry());
q.setSpatialRelationship(SpatialRelationship.INTERSECTS);
fLayer.selectFeatures(q, SELECTION_METHOD.NEW, selectfeatureCallbackListener());
instead of stating fLayer.selectFeatures how could I first find the layer that the spatialrelationship intersects and then run the selection method on it?so the last line of the code would read somevariable.selectFeatures(q, SELECTION_METHOD.NEW, selectfeatureCallbackListener());