Guys,
is this allowed? If so, why does the following not get rid of the feature from the map?
TIA.
internal void DeleteSelectedGraphics()
{
var feature = highlightLayer.InternalFeatures[0];
map.EditOverlay.EditShapesLayer.Open();
map.EditOverlay.EditShapesLayer.EditTools.BeginTransaction();
map.EditOverlay.EditShapesLayer.EditTools.Delete(feature.Id);
map.EditOverlay.EditShapesLayer.EditTools.CommitTransaction();
map.EditOverlay.EditShapesLayer.Close();
//map.EditOverlay.EditShapesLayer.InternalFeatures.Remove(feature.Id);
highlightLayer.InternalFeatures.Clear();
map.Refresh(new Overlay[] { map.EditOverlay,highlightOverlay });
}