How do i customize layer labels from a MapImageLayer? current layer code below
var resultsLabelLayer = new MapImageLayer({
url: url,
sublayers: [{
id: 1,
labelsVisible: true,
visible: true,
labelingInfo: [{
labelExpression: "[CONST]",
labelPlacement: "always-horizontal",
symbol: new TextSymbol({
color: [ 255,255,255,1 ],
font: {
size: 16,
weight: "bolder"
}
})
}]
}]
});
map.add(resultsLabelLayer);
Using this and adding the layer to the map yields no labels or the layer being drawn