Hi John,unfortunately, showLabels isnt' enough for me.I would like to change the labels expression in order to change the field used for Labelling.I've see that in the REST API there is a JSON structure in order to define the Label Style.How can I set this value into the Dynamic Layer?
{
"labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal",
"labelExpression": "[TAG]",
"useCodedValues": false,
"symbol": {
"type": "esriTS",
"color": [78,78,78,255],
"backgroundColor": null,
"borderLineColor": null,
"verticalAlignment": "bottom",
"horizontalAlignment": "left",
"rightToLeft": false,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"font": {
"family": "Arial",
"size": 12,
"style": "normal",
"weight": "bold",
"decoration": "none"
}
},
"minScale": 1999,
"maxScale": 0,
"where": ""
}
ThanksMarcofor 10.1 dynamic layers you can decide whether or not you'd like to show labels by setting the showLabels property of the LayerDrawingOptions class