Hi everyone,
I am writing some code using the Python API that will get the symbology of a hosted feature layer and apply that symbology to a view layer. The view layer data is referencing the hosted feature layer (so an exact copy). There are 30 view layers, so we need to be able to automate this process rather than updating the symbology of each view layer in ArcGIS Online.
I am testing this with some Earthquake data from an ESRI training course. My idea is to get the JSON renderer/drawingInfo from the main Earthquake layer and update the service definition of the view layer with the main layer. See code below.
I do get a "Success: True" message when I run this, however the drawingInfo properties don't actually update. I have also tried updating a more simple part of the properties (such as description) and that also doesn't update the properties even when the message returns "Success: True". This makes me wonder if I need higher privileges to run this code? I am currently a Publisher, not an Admin in my organization.
I'm sure there are also a few ways to write this code so happy to hear recommendations if I'm going down a path that is too complex...
