dojo.require("esri.tasks.GenerateRendererParameters")
Description
(Added at v2.6)
Define the classification definition and optional where clause for the
GenerateRendererTask operation.
Samples
Search for
samples that use this class.
Constructors
Properties
Constructor Details
Creates a new GenerateRendererParameters object.
Sample:
var params = new esri.tasks.GenerateRendererParameters();
params.classificationDefinition = classDef;
params.where = layerDef;
Property Details
Sample:
var classDef = new esri.tasks.ClassBreaksDefinition();
classDef.classificationField = currentAttribute;
classDef.classificationMethod = "quantile";
classDef.breakCount = 5;
classDef.baseSymbol = sfs;
var colorRamp = new esri.tasks.AlgorithmicColorRamp();
colorRamp.fromColor = dojo.colorFromHex("#998ec3");
colorRamp.toColor = dojo.colorFromHex("#f1a340");
colorRamp.algorithm = "hsv";
classDef.colorRamp = colorRamp;
var params = new esri.tasks.GenerateRendererParameters();
params.classificationDefinition = classDef;
Indicate if the label should be formatted (Added at v3.7)
Known values: true | false
Round values for the renderer. It should only work with classBreaksRenderer (Added at v3.7)
The label in the legend will have this prefix (Added at v3.7)
The label in the legend will have this at the end of each label (Added at v3.7)
A where clause used to generate the data classes. Any legal SQL where clause operating on the fields in the layer/table is allowed.
Sample:
params.where = "STATE_NAME = 'Washington'";