'AGSFeatureLayer' is loaded using a url from the arcgis server. Now, i would like to add a 'AGSFeature' in 'AGSFeatureLayer'. Is it possible to add a 'AGSFeature' in a 'AGSFeatureLayer' locally or, whether i need to use 'AGSGraphicOverlay' to accomplish that.
Kindly advice. Also give some example.
#2 Is the following way is right one to create AGSGraphic from a AGSFeature?
AGSSymbol * symbol = [self.graphic.featureTable.featureLayer.renderer symbolForFeature:self.feature];
AGSGraphic * graphicObj = [[AGSGraphic alloc] initWithGeometry:self.feature.geometry symbol:symbol attributes:self.feature.attributes];
#3 and i tried the following way to add a feature in feature table, but nothing happens
[layr.featureTable addFeature:data completion:^(NSError * _Nullable error) {
if(error)
{
nlog(@error: %@",error.localizedFailureReason);
}
}];