fieldnames

Oct 24, 2007 at 12:47 PM
Insted of changing the fieldname popdens each time .can we do redering based on the selected fieldname in a dropdownlist in gradient page.
how to add different fieldnames in the same function .
public static SharpMap.Map InitializeGradientMap(System.Drawing.Size size)
{


SharpMap.Map map = InitializeMap(size);

SharpMap.Styles.VectorStyle min = new SharpMap.Styles.VectorStyle();
SharpMap.Styles.VectorStyle max = new SharpMap.Styles.VectorStyle();

SharpMap.Rendering.Thematics.GradientTheme popdens= new SharpMap.Rendering.Thematics.GradientTheme("popdens", 0, 400, min, max);

popdens.FillColorBlend = SharpMap.Rendering.Thematics.ColorBlend.BlueToRed;

(map.Layers0 as SharpMap.Layers.VectorLayer).Theme = popdens;

return map;
}