Howdy.
I'm trying to rotate labels in a map in AGOL. They don't give you native options for that as of yet, so I figured I'd try to work it into the JSON in AGO Asst. There's an "Angle" field within the feature service (dataset was originally an annotation feature class, and was converted to a point.) which contains the angle of deflection for the original annotation.
The layer is parcel dimensions and I can have them rotated to match the line angle in ArcMap, but the labeling doesn't carry through when I publish it to a feature service on AGOL.
I've added the labelAngleInfo tag to the JSON but the numbers remain horizontal regardless.
Am I missing something? Am I way off base? Admittedly, I'm absolutely not versed in JSON so I'm just digging into documentation.
"labelingInfo": [
{
"labelExpression": null,
"labelExpressionInfo": {
"expression": "$feature[\"TextString\"]",
"value": "{TextString}"
},
"useCodedValues": true,
"maxScale": 0,
"minScale": 6297,
"where": null,
"labelPlacement": "esriServerPointLabelPlacementCenterCenter",
"labelAngleInfo": {
"angleExpressionInfo": {
"expression": "$feature.Angle",
"returnType": "number"
},
"rotationType": "arithmetic"
},
"symbol": {
"color": [
0,
0,
0,
255
],
"type": "esriTS",
"backgroundColor": null,
"borderLineColor": null,
"borderLineSize": null,
"haloSize": 0,
"haloColor": null,
"verticalAlignment": "baseline",
"horizontalAlignment": "center",
"angle": 0,
"rightToLeft": false,
"xoffset": 0,
"yoffset": 0,
"text": "",
"rotated": false,
"kerning": true,
"font": {
"size": 8.25,
"style": "normal",
"decoration": "none",
"weight": "normal",
"family": "Arial Unicode MS"
}
}
}
]
I'm trying to make it look like this: (ArcMAP)
Instead, I can't get them to change from this: (AGOL)
Thanks in advance.