Select to view content in your preferred language

FeatureLayer with rotated LabelClass based on feature's attributes field

265
2
Jump to solution
08-22-2024 09:38 PM
WoraminSat
Emerging Contributor

Hi

 

I have a FeatureLayer and display a text with LabelClass. The next thing I tried to achieve is make LabelClass rotated based 'ANGLE' attributes in the feature. For example I would like the text in the bottom-left of below picture to rotate 45 degree, while others stay the same. But I cannot find how to do this.

WoraminSat_0-1724387626829.png

WoraminSat_1-1724387855555.png


Please suggest me how to achieve this

 

Thanks

Woramin S.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MatthewDriscoll
MVP Alum

Start trying to query the field and use the angle on the TextSymbol.  Never done this before so I am not positive this is the answer.

https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#angle

View solution in original post

2 Replies
MatthewDriscoll
MVP Alum

Start trying to query the field and use the angle on the TextSymbol.  Never done this before so I am not positive this is the answer.

https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#angle

WoraminSat
Emerging Contributor

OK , looks like I have to create GraphicsLayer and create each features.

0 Kudos