Maybe this is easier than I’m making it, but I’m trying to save the edited shape from the edit overlay to the original feature being edited with this code. After the map refreshes the shape doesn’t get updated and stays the way it was before. This is an InMemoryFeatureLayer.
m_oCustomShapes.Open()
’ Get new shape
Dim
polShape
As
PolygonShape = m_oEditOverlay.EditShapesLayer.InternalFeatures(0).GetShape()
’ Recreate feature with new shape - m_oRightClickedCustShape is the original feature
m_oRightClickedCustShape =
New
Feature(polShape, m_oRightClickedCustShape.ColumnValues)
m_oCustomShapes.FeatureSource.BeginTransaction()
m_oCustomShapes.FeatureSource.UpdateFeature(m_oRightClickedCustShape)
m_oCustomShapes.FeatureSource.CommitTransaction()
’ Also tried this line, but internal features doesn’t return the original feature
'm_oCustomShapes.InternalFeatures(m_oRightClickedCustShape.Id) = m_oRightClickedCustShape
m_oCustomShapes.Close()
m_oDynamicOverlay.Refresh()