winformsMap1.MapUnit = GeographyUnit.Meter; winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.Snow); ClassBreakStyle gridClassBreakStyle = new ClassBreakStyle("CellValue"); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(double.MinValue, new AreaStyle(new GeoSolidBrush(GeoColor.SimpleColors.Transparent)))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(100, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 255, 0, 0))))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(200, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 255, 128, 0))))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(300, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 245, 210, 10))))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(500, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 225, 255, 0))))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(800, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 224, 251, 132))))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(1000, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 128, 255, 128))))); gridClassBreakStyle.ClassBreaks.Add(new ClassBreak(2000, new AreaStyle(new GeoSolidBrush(GeoColor.FromArgb(100, 0, 255, 0))))); GridFeatureLayer gridFeatureLayer = new GridFeatureLayer(@"C:\temp\Inputs2\IWD_1000m.grd"); //GridFeatureLayer gridFeatureLayer = new GridFeatureLayer(@"C:\temp\Inputs2\IWD_1000m_NoEmpty.grd"); gridFeatureLayer.Open(); gridFeatureLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(gridClassBreakStyle); gridFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; LayerOverlay staticOverlay = new LayerOverlay(); staticOverlay.Layers.Add("GridFeatureLayer", gridFeatureLayer); winformsMap1.Overlays.Add(staticOverlay); winformsMap1.CurrentExtent = gridFeatureLayer.GetBoundingBox(); System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch(); stopwatch.Start(); winformsMap1.Refresh(); stopwatch.Stop(); System.Diagnostics.Debug.WriteLine(stopwatch.Elapsed.TotalMilliseconds);