The new text symbol halos are great. I have encountered an issue when providing the symbol via the LabelClass constructor, where the halo color is always black.
Halo color is correct when assigning label.symbol:
label = new LabelClass({
labelExpressionInfo: {
value: '{WSC_ID}'
},
minScale: 3000,
labelPlacement: 'above-center'
});
label.symbol = jsonUtils.fromJson({
type: 'esriTS',
color: [0, 0, 255],
haloColor: [255, 255, 255],
haloSize: 1,
font: {
size: 8,
weight: 'bold',
family: 'sans-serif'
}
});
Halo color is black when symbol passed via constructor:
label = new LabelClass({
labelExpressionInfo: {
value: '{WSC_ID}'
},
minScale: 3000,
labelPlacement: 'above-center',
symbol: jsonUtils.fromJson({
type: 'esriTS',
color: [0, 0, 255],
haloColor: [255, 255, 255],
haloSize: 1,
font: {
size: 8,
weight: 'bold',
family: 'sans-serif'
}
})
});
Just an heads up and thanks for this feature.