Hi Liang_Lu,
In WPF if you choose simple marker overlay, each marker should be one control, so it will be so slow if the number is big.
Please try the InMemoryMarkerOverlay or if you just need shows the features like a marker, InmemoryFeatureLayer is enough. You just need to set the style like a marker:
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(“Your Marker Image”);
And here is some sample code to edit a shape file:
ShapeFileFeatureLayer.CreateShapeFile();
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer("");
layer.FeatureSource.BeginTransaction();
layer.FeatureSource.AddFeature();
layer.FeatureSource.UpdateFeature();
layer.FeatureSource.DeleteFeature();
layer.FeatureSource.CommitTransaction();
Wish it’s helpful.
Regards,
Ethan