I have created an InMemoryFeatureLayer of a point that I am displaying on the map. I want to be able to move the point, the idea is to have the point move when a GPS device updates the location. But right now I just have a button I push to hardcode the move.
It is not updating the point with the new X, Y
Dim GPSPoint As InMemoryFeatureLayer
Dim ThePoint As PointShape
GPSPoint = New InMemoryFeatureLayer
GPSPoint = pointOverlay.Layers("PointLayer")
ThePoint = New PointShape
ThePoint = GPSPoint.InternalFeatures(0).GetShape
ThePoint.X = -95.4809
ThePoint.Y = 38.9543
GPSPoint.Open()
GPSPoint.FeatureSource.BeginTransaction()
GPSPoint.FeatureSource.UpdateFeature(ThePoint)
GPSPoint.FeatureSource.CommitTransaction()
GPSPoint.Close()
WpfMap_Main.Overlays("PointOverlay").Refresh()
Thanks.
Shayne.