AnsweredAssumed Answered

TextSymbol 2D halo color doesn't work

Question asked by di_minglei on Mar 15, 2018

I create a client-side graphic layer(as a label layer) and then add graphics with TextSymbol, I need to set halo color to make the label graphic standing out, but it doesn't work. Here's my symbol:


this.labelTextSymbol2D = {
type: "text",
color: "black",
haloColor: "dodgerblue",
haloSize: "5px",
text: "test",
font: {
size: 14,
weight: "bold"
xoffset: 7,
yoffset: 10


And I set text and assign to the graphic which is added to the graphic layer:

_getStationSymbol (...) {
   symbol = this.labelTextSymbol2D;
   symbol.text = currentParameterValue;
let symbol = this._getStationSymbol(attributes.CurrentParameterValue, this.selectedParameter, isForLabelLayer),
graphic = symbol === null ? null : new Graphic({
geometry: point,
attributes: attributes,
symbol: symbol


Can anyone help?


Much appreciated,