Can you use a Unique Value Renderer function for a MapImageLayer sublayer?
When I try using an existing field name as a string it works, but when I try to set up a function like in the api documentation I get the error:
[esri.renderers.UniqueValueRenderer] .field: cannot write field to JSON since it's not a string value
The code I am using:
Is there a way to make it work?
Ok, found the answer myself (just starting with Arcade Expressions):
Only need that: