I am creating markers (Symbol and Text) dynamically thru c# serverside code (Page Load event) to display various points of interest. The code works great to show a custom symbol and text at a specific x,y coordinate.However, the TextSymbol does not honor backgroundColor or borderLineColor using the JSON Syntax{
"type" : "esriTS",
"color" : <color>,
"backgroundColor" : <color>,
"borderLineColor" : <color>,
"verticalAlignment" : "<baseline | top | middle | bottom>",
"horizontalAlignment" : "<left | right | center | justify>",
"rightToLeft" : <true | false>,
"angle" : <angle>,
"xoffset" : <xoffset>,
"yoffset" : <yoffset>,
"kerning" : <true | false>,
"font" : {
"family" : "<fontFamily>",
"size" : <fontSize>,
"style" : "<italic | normal | oblique>",
"weight" : "<bold | bolder | lighter | normal>",
"decoration" : "<line-through | underline | none>"
}
}
(code from http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/index.html?symbol.html)Are the backgroundColor and borderLineColor valid options when creating TextSymbols (type esriTS) from serverside code pushed to a graphics layer? If so, why doesn't the following correctly display a white background, red border with text in the middle?{
"type": "esriTS",
"text": "TEST TEXT",
"color": [255,255,255,255],
"backgroundColor": [0,0,0,255],
"borderLineColor": [255,0,0,255],
"verticalAlignment": "bottom",
"horizontalAlignment": "left",
"rightToLeft": false,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"font": {
"family": "Arial",
"size": 12,
"style": "normal",
"weight": "bold",
"decoration": "none"
}
}