I have a FeatureLayer with PointShapes, and they are drawn in the right location the first time, but when I try to update it's position it does not change. This is the code I use to update it:
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica; min-height: 12.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica; color: #1e39f6}
span.s1 {color: #1e39f6}
span.s2 {color: #000000}
</style>
Dim IconPoint As PointShape = InMemoryTrackIconsFeatureLayer.InternalFeatures(TargetID.ToString).GetShape()
IconPoint.X = Longitude
IconPoint.Y = Latitude
SyncLock InMemoryTrackIconsFeatureLayer
InMemoryTrackIconsFeatureLayer.Open()
InMemoryTrackIconsFeatureLayer.EditTools.BeginTransaction()
InMemoryTrackIconsFeatureLayer.EditTools.Update(InMemoryTrackIconsFeatureLayer.InternalFeatures(TargetID.ToString))
InMemoryTrackIconsFeatureLayer.EditTools.CommitTransaction()
InMemoryTrackIconsFeatureLayer.Close()
End SyncLock
What am I missing?