I have a script that loads layers with company specific symbology to User's Content in ArcEnterprise. I am trying to maintain that symbology.
It seems that this code removes symbology:
areas = GeoAccessor.from_featureclass()
area_item = areas.spatial.to_featurelayer( title, gis , tags)
area_item.reassign_to( user , folder)
AreaRenderer = = {"renderer": "autocast", "type": "simple"}
area_item.renderer = AreaRenderer
So I am trying to use the renderer to assign the specific symbology and save the layer. Do I need to add this layer to a WebMap to ensure it applies the symbology? or can I simply set it and save it?
This blog post may be helpful for you: