AGSFeatureTemplate *template = [self.geoLayer.templates objectAtIndex:0];// there is only 1 template self.newFeature = [self.geoLayer featureWithTemplate:template]; self.newFeature.geometry = self.sketchLayer.geometry; [self.geoLayer addFeatures:[NSArray arrayWithObject:self.newFeature]];
{ error = { code = 1015; description = "Geometry could not be set."; }; globalId = "<null>"; objectId = 0; success = 0; }
Solved! Go to Solution.