hi
i have some data including shp, shx, dbf, xml and some other files. using DisplayShapeMap user control in sample application, when i try to add shape files in my data, i always get the user control as blue colored in debug mode. interestingly enough; if i m not debugging i get the error
"The parameter you supplied may not be null.
Parameter name: worldExtent"
can anybody tell me whats the problem? here is the code
ShapeFileFeatureLayer worldLayer1 = new ShapeFileFeatureLayer(@"E:\GIS\vyrez\lesy.shp");
worldLayer1.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
worldLayer1.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
ShapeFileFeatureLayer.BuildIndexFile(@"E:\GIS\vyrez\lesy.shp");
winformsMap1.StaticOverlay.Layers.Add("Layer1", worldLayer1);
winformsMap1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
winformsMap1.CurrentExtent = new RectangleShape(-180.0, 83.0, 180.0, -90.0);
winformsMap1.Refresh();
Thanks