I have a FeatureLayer that I am setting .labelingInfo. In my map view the labels are shown correctly but in my web map export PDF, the label values are wrapped. And ideas how to not wrap the labels in the PDF export?
Labeling code:
const nameArcade = "var in_val = $feature." + label_field + "\n" +
"var decimal_val_threshold = 1" + "\n" +
"if (in_val >= decimal_val_threshold) {" +
" return Text(Round(in_val, 0), '#,###')" +
"} else {" +
" return ' <1'" +
"}";
const nameClass = {
labelPlacement: "always-horizontal",
labelExpressionInfo: {
expression: nameArcade
},
minScale: min_scale,
symbol: createTextSymbol("white", "black")
};
function createTextSymbol(color, halo_color) {
return {
type: "text",
font: {
size: 12,
weight: "bold"
},
color: color,
haloColor: halo_color,
haloSize: 1
};
}
Map view of labels:
PDF showing wrapped labels: