Select to view content in your preferred language

Updating a feature in a feature layer

1306
3
04-21-2014 06:32 AM
Labels (1)
NickBrueggemann
New Contributor
I'm sure this is a simple thing I just can't figure it out...  How do I update the location of a feature in a feature layer?  I can add a feature and remove a feature.  How do I update an existing one?  Thanks for the help!

- Nick
0 Kudos
3 Replies
AnttiKajanus1
Deactivated User
Depending your editing needs, you have different approaches.

I recommend you to check there links:
To see samples how to work with graphics (GraphicLayers) / features (FeatureLayers) see Sample app (this is packaged in installer so if you have installed full SDK you should have it) and sections Mapping \ Graphics Layers and Editing.

Hope that these will help. Let me know if you have more questions.
0 Kudos
NickBrueggemann
New Contributor
Thanks for the response!

I'm familiar with using the editor widget to add, update, and delete features.  I'm trying to accomplish the same behavior as the editor widget but I'm wanting to do it myself programatically. 

- Nick
0 Kudos
AnttiKajanus1
Deactivated User
Are you working with GraphicLayers or FeatureLayers and are you also going to save them to the FeatureService?

If you are working with MapPoints, then use MoveTo()-method to change the location. See MoveTo sample from DevSummit demos or Sample App \ Mapping \ Graphics Layers \ Moving graphic objects as reference.
0 Kudos