I'm trying to do a text-overflow for a label in a Feature Layer that will start after 2 lines. I was thinking if I could add HTML to make it work, but am unsure how.
LABEL CODE:
const labelingInfo = [ {
labelExpressionInfo: {
expression:"$feature.name"
},
labelPlacement: "below-center",
symbol: {
type: "text", // autocasts as new TextSymbol()
backgroundColor: "#80413737",
lineWidth: 20,
haloColor: "#413737",
haloSize: 1,
font: {
size: 12,
family: "Poppins",
weight: "bold",
},
horizontalAlignment: "left",
color: "#FFFFFF",
},
} ]
Current:
Intended: