Uniquevaluerenderer's rotationinfo

3889
3
Jump to solution
01-28-2015 03:20 PM
EdwardSohn2
New Contributor III

What way to use the Uniquevaluerenderer's rotationinfo value to set a symbols angle?

Is it as simple as getting the attribute value for the rotationinfo's field value and then using that value to set the symbol's angle of setAngle?

the type is geographic.

The rotation doesn't seem to be coming in right.

Are there some transformations to be aware of?

0 Kudos
1 Solution

Accepted Solutions
EdwardSohn2
New Contributor III

Just used symbol's setAngle and seems to work...

View solution in original post

0 Kudos
3 Replies
KellyHutchins
Esri Frequent Contributor

There's a sample in the help that shows how to set the rotation info.

Color ramp with rotation and proportional symbols | ArcGIS API for JavaScript

EdwardSohn2
New Contributor III

Is it possible to manually set the rotation?
The sample seems to use renderer's setRotationInfo to define the field that has the rotation value.

If I have this value and want to manually set the rotation of a given symbol, is this possible?

The rotationinfo defines the field and the type = "geographic".  The field can be used to get the hard value.

Now just need to rotate the symbol.

0 Kudos
EdwardSohn2
New Contributor III

Just used symbol's setAngle and seems to work...

0 Kudos