I have a completely empty dynamic layer
public class CustDynamicLayer2 : BaseDynamicLayer
{
public override void DrawDynamicLayer(esriDynamicDrawPhase DynamicDrawPhase, IDisplay iDisplay, IDynamicDisplay iDynamicDisplay) { }
}
I add a shape file with these four calls:
gcs = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);
mapControl.SpatialReference = gcs;
mapControl.Map.AddLayer(new CustDynamicLayer2()); //without this my shapefile is badly distorted
mapControl.AddShapeFile(fileDir, fileName);
Basically if I don't add that empty class CustDynamicLayer2, the shapefile is distorted. This makes no sense to me because the class doesn't do anything.