Hi, I'm struggling with rotating a webstyle symbol that i've created.
The rotationVariable i set on the renderer is prettty much disregarded, it wont rotate based on the field value ive specified. For some reason the only time I am able to rotate the symbol in any way is when i use the random function in Arcade in a ValueExpression to generate a random rotational direction between 0 and 360. If i try to return the field "rotation"'s value in the valueExpression, nothing happens.
Any clue to what might be hindering the rotation based on a field value?
const renderer = {
type: "simple", // autocasts as new SimpleRenderer()
symbol: {
type: "web-style", // autocasts as new WebStyleSymbol()
styleUrl: "https://someOrgAccount.maps.arcgis.com/sharing/rest/content/items/xxxxxxxxxxxxxxxxxxx/data",
name: "Point symbol"
},
label: "label"
};
var sv = new SizeVariable();
sv.field = "hoyde";
sv.axis= "height";
sv.minDataValue= 2;
sv.maxDataValue= 3;
sv.minSize= 2;
sv.maxSize= 3;
var rv = new RotationVariable();
rv.field = "rotation";
rv.rotationType = "geographic";
rv.axis = "heading";
rv.valueExpression = "Random() * 360";
renderer.visualVariables = [ rv, sv ];