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);