public void applyEdits(Geometry geometry, FeatureType subType, ArcGISFeatureLayer featureLayer) { //create a graphic using the type Graphic graphic = featureLayer.createFeatureWithType(subType, geometry); Map<String, Object> attr = graphic.getAttributes(); attr.put("Number", count); attr.put("ObserverID", userID); attr.put("Behavior", behavior); featureLayer.applyEdits(new Graphic[] {graphic}, null, null, new CallbackListener<FeatureEditResult[][]>() { public void onError(Throwable error) { } public void onCallback(FeatureEditResult[][] editResult) { } }); finish(); }
Solved! Go to Solution.