cris11

ApplyEdits always adds a new point to the map

Discussion created by cris11 on Nov 6, 2012
Latest reply on Nov 7, 2012 by cris11
I was doing a system based on the citizen serice request sample.

Feature layer displays ok

When I try each of the three lines of code, it always add a new point to the current map, instead of updating, or deleting, it always add a new point to the feature layer.

currentFeature.getLayer().applyEdits([currentFeature], null, null);  // to add new point
currentFeature.getLayer().applyEdits(null, [currentFeature], null);  // to update attributes
currentFeature.getLayer().applyEdits(null, null, [currentFeature]);  // to delete feature

What could possibly wrong, any clues? I have been trying... for 2 weeks.  Your help is much appreciated.

Outcomes