Select to view content in your preferred language

featurelayer label with subscription or supscription

193
1
05-13-2024 11:34 PM
Lazyman
New Contributor III

Hi,I want to add labelingInfo for a featurelayer, and the label is combine with two field values, like Field1<sub>Field2</sub>,or Field1<sup>Field2</sub>. I don't know how to set the labelExpressionInfo, as it seems no sub or sup support for arcade expression or html tag.  

Looking forwading to you help, thank you!

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

Hi @Lazyman, thanks for posting your question here. Currently, we don't have labeling support for subscript and superscript. As an alternative, this sample shows some formatting options with multiple label classes: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=labels-multiple-classes

 

0 Kudos