QueryTask queryTask = new QueryTask(AsyncIdentifyItems[0].Url); Query query = new Query(); query.TimeExtent = IdentifiedMap.TimeExtent; query.OutFields.Add("*"); FeatureSet featureSet = queryTask.Execute(query); MosaicRule mosaicRule = new MosaicRule(); if (featureSet != null && featureSet.Features.Count > 0) { List<Int32> fids = new List<Int32>(); foreach (Graphic graphic in featureSet.Features) { fids.Add(Convert.ToInt32(graphic.Attributes[featureSet.ObjectIdFieldName])); } mosaicRule.FIDs = fids.ToArray(); } ImageServiceIdentifyParameters.MosaicRule = mosaicRule;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.