I'm trying to delete a feature on an overlay, this is my code
LayerOverlay _baseOverlay = (LayerOverlay)TestMap.Overlays[SmartMapHelper.BaseOverlayKeyName];
InMemoryFeatureLayer _baseLayer = (InMemoryFeatureLayer)_baseOverlay.Layers[SmartMapHelper.BaseLayerKeyName];
_baseLayer.Open();
_baseLayer.InternalFeatures.Remove(SelectedFeature);
_baseLayer.Close();
ClearSelectedFeature();
_baseOverlay.Refresh();
MessageBox.Show("Remove feature succeed")
the problem is that i can still see the feature there lying on my monitor,
But when i refresh my page - using F5 or ctrl+F5 - it gone.
So please, show me what is wrong with my code !
Thanks.