Update a feature's location in an online feature service.
Sometimes users may want to edit features in an online feature service by moving them.
Tap a feature to select it. Tap again to set the updated location for that feature. An alert will be shown confirming success or failure.
- Create a
ServiceFeatureTable
object from a URL. - Create a
FeatureLayer
object from theServiceFeatureTable
. - Select a feature from the feature layer, using
FeatureLayer.SelectFeatures
. - Load the selected feature.
- Change the selected feature's location using
Feature.Geometry = geometry
. - After the change, update the table on the server using
ApplyEditsAsync
.
- Feature
- FeatureLayer
- ServiceFeatureTable
editing, feature layer, feature table, moving, service, updating