Hi all,
I have a MapShapeLayer on which I add some point shapes. On the Feature I set the ColumnsValues property (which is a Dictionary<string, string>), And then on the layer I set some ClassBreakStyle. The problem is that when I draw the layer an ArgumentException - {"The class breaks you have provided are invalid."} is thrown. Does anyone have any idea what is wrong?
//I create the fetures like this
Dictionary<string, string> columnValues = new Dictionary<string,string>(2);
columnValues.Add("leads", reportRow["leads"].ToString());
columnValues.Add("zip", reportRow["zip"].ToString());
Feature feature = new Feature(new PointShape(Convert.ToDouble(reportRow["Longitude"]),
Convert.ToDouble(reportRow["Latitude"])), reportRow["zip"].ToString(), columnValues );
//i create the break style like this
ClassBreakStyle classBreakStyle = new ClassBreakStyle("leads");
Color standardColor = ColorTranslator.FromHtml(flowRanges.Rows[0]["color"].ToString());
GeoColor color = GeoColor.FromArgb(standardColor.A, standardColor.R, standardColor.G,
standardColor.B);
ClassBreak range = new ClassBreak(0, PointStyles.GetSimpleCircleStyle(color, 10));
classBreakStyle.ClassBreaks.Add(range);
//........
aeLeadFlows.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(classBreakStyle);
aeLeadFlows.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;