Thanks for the solution to modify symbology of hosted Feature in ArcGIS Online.
I am trying to micmic a hatch symbol fill over a fill symbol fill (multi-layers symbol), as follow:
ArcGIS Pro symbol
When shared to ArcGIS Online, only the first 2 layers displays. It looks like the plain yellow fill is not in the JSON file.
In drawingInfo for uniqueValue renderer, initially I have:
{"symbol":{"type":"esriSFS","style":"esriSFSBackwardDiagonal","color":[255,85,0,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[255,85,0,255],"width":0.5}},"value":"Sample","label":"Sample"}
And I am trying to add an extra “layer” in the symbology for the plain yellow fill:
"type":"esriSFSSolid","color":[255,255,153,255]
When updating the drawingInfo code, it gives:
{"symbol":{"type":"esriSFS","style":"esriSFSBackwardDiagonal","color":[255,85,0,255],"type":"esriSFSSolid","color":[255,255,153,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[255,85,0,255],"width":0.5}},"value":"Sample","label":"Sample"}
When hitting Update Service Definition button, it looks ok with a message “Updated Feature Service”… but when returning to the drawingInfo code, the changes do not appear.
I also tried to change the "lastEditDate" to null to validate the change, but it did not work either.
Finally, I noticed a message “Note: This operation is only supported via POST” in the top of the JSON page. Would it cause the drawingInfo not to update?
Any help appreciated