Select to view content in your preferred language

TextSymbol background color

1311
1
03-22-2011 12:36 PM
JasonMiller1
Emerging Contributor
I'm using a TextSymbol to label points I'm placing on my map.  Problem is, sometimes it can be hard to read because of all the things going on with the map.  Is it possible to put the TextSymbol inside a box, give it a background color, or highlight the text in some way to help it stand out from the background?  There's no built-in way to change anything but the alignment and the underline/overline, but I was hoping someone might know a trick for this. 


http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/textsymbol.htm
0 Kudos
1 Reply
HemingZhu
Frequent Contributor
I'm using a TextSymbol to label points I'm placing on my map.  Problem is, sometimes it can be hard to read because of all the things going on with the map.  Is it possible to put the TextSymbol inside a box, give it a background color, or highlight the text in some way to help it stand out from the background?  There's no built-in way to change anything but the alignment and the underline/overline, but I was hoping someone might know a trick for this. 


http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/textsymbol.htm


How about create the same textsymbol twice. One as the text, one as the shade (give it a dark gray color and some offset from the other one so that it looks like the shadow of the other one).
0 Kudos