I need to use different colors to represent different kinds of roads. Now the criteria are certain values such as 40,27,35…
If the criterion are some ranges(e.g. greater than 40), how can I achieve that?
ValueStyle valueStyle = new ValueStyle();
valueStyle.ColumnName = "RTE_NUM1";
valueStyle.ValueItems.Add(new ValueItem("40", LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.Green , 2, true)));
valueStyle.ValueItems.Add(new ValueItem("27", LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.Gray , 2, true)));
valueStyle.ValueItems.Add(new ValueItem("35", LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.DarkViolet , 2, true)));
valueStyle.ValueItems.Add(new ValueItem("30", LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.DarkSlateBlue , 2, true)));
ValueStyle
Hi Junxuan,
I think the classbreakstyle should meet for your case ,would you please have a try?
wiki.thinkgeo.com/wiki/Think…BreakStyle
Thanks,
Troy
Thanks for your help!
It works well!
Junxuan
Junxuan,
Great to hear it helps.
Any other questions, don’t hesitate to let us know.
Thanks,
Troy