Hi,
I'm using ArcGIS REST Api Version 10.6.1.
I'm trying to get the color in the render out of the features in the feature layer.
A feature could look like this:
{
"attributes": {
"objectId": 31,
"shortText": "Some text",
"description1": "SampleDescription",
"type": "LINE",
"color": "[114,140,114,100]"
},
"geometry": {
...
}
}
In my renderer I'm trying to excess the field 'color' with an arcade expression:
"drawingInfo": {
"renderer": {
"type": "uniqueValue",
"field1": "type",
"uniqueValueInfos": [
{
"value": "LINE",
"symbol": {
"type": "esriSLS",
"style": "esriSLSDot",
"color": "$feature.color",
"width": 1
}
}
]
},
"transparency": 0
}
It doesn't work!
Is it possible to get the value for the color in the renderer out of the feature in such a way?
Or do I need another approach?
Thanks for any help!
Ken