Select to view content in your preferred language

Text formatting Tags in label expression is not applying in sceneview

2002
7
Jump to solution
03-19-2021 11:46 PM
KarthiSivalingam
Emerging Contributor

Hi, 

I am using arcgis runtime SDK 100.10 in WPF application. I have feature layer loaded from mobile geodatabse. The feature layer is having labels and label expressions are having text format tag for coloring the text.  (e.g "<CLR red = '255'>" + "My label" + "</CLR>" ).  This label is perfectly displaying with color in Mapview. But  Sceneview displays in black color instead of red color. Is Text formating tags not supported in sceneview now?

Thanks, 

karthi

0 Kudos
1 Solution

Accepted Solutions
RichardJShepherd
Occasional Contributor

Yes, Karthi. `clr` tags will be supported as soon as possible. The other tags supported in Runtime do appear to be working correctly in 3d scenes (`bol`,`ita`,`fnt`,`und`), but `clr` seems to have slipped through the net.

View solution in original post

7 Replies
RichardJShepherd
Occasional Contributor

Hmmm. That's odd, Karthi. The 2d and 3d text rendering should be going through the same code path and have the same capabilities. I'll open an issue with the Runtime Text team to see if we can reproduce the problem and fix it. Thanks for the heads-up

0 Kudos
RichardJShepherd
Occasional Contributor

If you are able, could verify whether setting the color within the TextSymbol for the LabelClass or LabelDefinition, rather than in the label expression, is changing the color as you would expect?

0 Kudos
KarthiSivalingam
Emerging Contributor

Thanks for looking into the issue.

Yes , setting color within the TextSymbol changing the color for all the labels in the LabelClass.   

0 Kudos
KarthiSivalingam
Emerging Contributor

Will Scenview support formatting tags in future?

Thanks ,

Karthi  

0 Kudos
RichardJShepherd
Occasional Contributor

Yes, Karthi. `clr` tags will be supported as soon as possible. The other tags supported in Runtime do appear to be working correctly in 3d scenes (`bol`,`ita`,`fnt`,`und`), but `clr` seems to have slipped through the net.

KarthiSivalingam
Emerging Contributor

Hi,

Is this support added in 100.12? 

Thanks,

Karthi

0 Kudos
KarthiSivalingam
Emerging Contributor

Hi @RichardJShepherd , We have upgraded our application to 100.14. But "clr" tag is not working in scene view. 

Thanks,

Karthi

 

0 Kudos