cyohman

It would appear this code is deprecated..

Discussion created by cyohman on Jul 13, 2010
Latest reply on Jul 16, 2010 by cyohman
//create the renderer with a default simple marker symbol
//and an attribute field.
AGSClassBreaksRenderer *cityRenderer = [AGSClassBreaksRenderer
classBreaksRendererWithDefaultSymbol:[AGSSimpleMarkerSymbol
simpleMarkerSymbol] forAttributeField:@"POP1990"];

//create three AGSClassBreak objects, one each for
//low, medium and high populations and the appropriate
//symbol (for clarity, the symbol creation has been omitted)
AGSClassBreak* lowClassBreak = [AGSClassBreak
classBreakInfoWithSymbol:lowMarkerSymbol forMinValue:DBL_MIN
maxValue:50000.0];

AGSClassBreak* mediumClassBreak = [AGSClassBreak
classBreakInfoWithSymbol:mediumMarkerSymbol forMinValue:50000.0
maxValue:250000];

AGSClassBreak* highClassBreak = [AGSClassBreak
classBreakInfoWithSymbol:highMarkerSymbol forMinValue:250000.0
maxValue:DBL_MAX];

//create the NSMutableArray and set it into the renderer´┐Ż??s
//classBreaks property
cityRenderer.classBreaks = [NSMutableArray arrayWithObjects:
lowClassBreak, mediumClassBreak, highClassBreak, nil];


http://help.arcgis.com/en/arcgismobile/10.0/apis/iPhone/concepts/index.html#/Working_with_Symbols_and_Renderers/00pw00000021000000/

Documentation:
http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/reference/index.html

Outcomes