Mask TextSymbol with color

3772
2
07-16-2014 06:31 AM
BhavinSanghani
Occasional Contributor II

How to mask the TextSymbol with color (see attached)? I have following existing code using SOAP SDK to connect ArcGIS Server. Is there similar thing in ArcGIS JS API? With TextSymbol, I can configure fonts, weight etc but there seems no way to mask the text with color in JS API.

 

            SimpleFillSymbol lvFillSymbol = new SimpleFillSymbol();

            lvFillSymbol.setColor(getColor(piParameters.getLabelOutlineColor(), ISymbol.DEFAULT_TEXT_OUTLINE_COLOR));

            lvFillSymbol.setStyle(EsriSimpleFillStyle.esriSFSSolid);

           

            TextSymbol lvSymbol = new TextSymbol();

            lvSymbol.setMaskStyle(EsriMaskStyle.esriMSHalo);

            lvSymbol.setMaskSymbol(lvFillSymbol);

            lvSymbol.setMaskSize(2);

0 Kudos
2 Replies
BhavinSanghani
Occasional Contributor II

Is there anyway to mask the text symbol with color? Is there a limitation in ArcGIS JS API to achieve this?

0 Kudos
JasonLevine
Occasional Contributor II

I'd also like to do this...it seems like the JS API doesn't allow for this though.  Can someone from the JS API team confirm?

Thanks,

Jason

0 Kudos