- (void)featureLayer:(AGSFeatureLayer *)featureLayer operation:(NSOperation*)op didFeatureEditsWithResults:(AGSFeatureLayerEditResults *)editResults; - (void)featureLayer:(AGSFeatureLayer *)featureLayer operation:(NSOperation*)op didFailFeatureEditsWithError:(NSError *)error;
Hi Nimesh,
I have created property for feature layer and I'm trying to add feature from query result. But unable to do that.....delegate methods are not getting called. Below is my code. Will you please help me with this.
- (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation*)op didExecuteWithFeatureSetResult:(AGSFeatureSet *)featureSet
{
NSInteger index;
for (index = 0; index <featureSet.features.count; index++)
AGSSimpleFillSymbol * fillSym = [AGSSimpleFillSymbol simpleFillSymbol];
fillSym.style = AGSSimpleFillSymbolStyleSolid;
fillSym.color = [UIColor orangeColor];
AGSGraphic * graphic = [featureSet.features objectAtIndex: index];
graphic.symbol = fillSym;
[self.featureLayer1 addFeatures:@[graphic]];
}
[self.featureLayer1 refresh];
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.