The classBreaksInfo object provides information about the class breaks associated with the renderer.
Referenced by: ClassBreaks Renderer
Properties
Property | Details |
---|---|
alternateSymbols[] | An array of symbol alternatives to a primary symbol. When alternative symbols are present, each symbol has minimum scale and maximum scale at which the symbol should be made visible. For any renderer that support alternate symbols, there is a primary symbol that has minimum and maximum scale defined. When rendering these renderer classes, the renderer should pick only one symbol at a given map scale for a given renderer class. The order of picking a symbol should be starting with primary symbol to check if it falls within the map's scale first before it iterates through alternate symbols in the array starting from 0. The renderer will then pick the first symbol that is visibile at current map scale. A symbol is visible if the map scale is greater than symbol's maximum scale and less than or equal to symbol's minimum scale. |
classMaxValue | A numeric value used to specify the maximum value for a break. |
classMinValue | A numeric value used to specify discontinuous class breaks. If this value is null or is missing, the map server will calculate the minimum value based on the preceding class' maximum value. |
description | String value used to describe the drawn symbol. |
label | String value used to label the drawn symbol. |
symbol | An object used to display the value. |
classBreak Info Example
{
"classMaxValue": 1000,
"label": "10.0 - 1000.000000",
"description": "10 to 1000",
"symbol": {
"type": "esriSFS",
"style": "esriSFSSolid",
"color": [
236,
252,
204,
255
],
"outline": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [
110,
110,
110,
255
],
"width": 0.4
}
}
}
classBreak Info with alternateSymbols Example
{
"classMaxValue": 1000,
"label": "10.0 - 1000.000000",
"description": "10 to 1000",
"symbol": {
"type": "CIMSymbolReference",
"symbol": {
"type": "CIMLineSymbol",
"symbolLayers": [
{
"type": "CIMSolidStroke",
"enable": true,
"name": "Group 17",
"colorLocked": true,
"capStyle": "Butt",
"joinStyle": "Round",
"lineStyle3D": "Strip",
"miterLimit": 10,
"width": 2,
"color": [
253,
253,
253,
255
]
},
{
"type": "CIMSolidStroke",
"enable": true,
"name": "Group 18",
"capStyle": "Butt",
"joinStyle": "Round",
"lineStyle3D": "Strip",
"miterLimit": 10,
"width": 3.5,
"color": [
204,
201,
190,
255
]
}
]
},
"minScale": 72223.819286
},
"alternateSymbols": [
{
"type": "CIMSymbolReference",
"symbol": {
"type": "CIMLineSymbol",
"symbolLayers": [
{
"type": "CIMSolidStroke",
"enable": true,
"name": "Group 17",
"capStyle": "Round",
"joinStyle": "Round",
"lineStyle3D": "Strip",
"miterLimit": 10,
"width": 1,
"color": [
156,
156,
156,
255
]
}
]
},
"minScale": 144447.638572,
"maxScale": 72223.819286
}
]
}