Hi,
My application has a set of points, I want to be able to have my user click on a point and then drag it to a new location. When the user clicks save, the point location should be updated in the InMemoryFeatureLayer. This should be pretty straight forward by adding the point from the InMemoryFeatureLayer to the EditOverlay. This would allow me to move the point where I need to on the map. But once I hit the save button and get the updated feature from the EditOverlay and call the UpdateFeature method off of the FeatureSource on the InMemorylayer nothing happens. The method call executes fine like the feature was updated, but the point remains in the original location.
I have attached a small sample application that shows what is happening.
I did find a work around, if I add the feature using a key, and then update using that key things seem to work. However i think the code in the attached sample should work too because the id of the feature in the InMemoryLayer and EditOverlay are the same. I also tried the Delete method off of the feature source which takes and id, and it didn't work either.
Please look at the attached sample and let me know your thoughts.
Thanks!
811-MoveAPointLocation.zip (14.1 KB)