Select to view content in your preferred language

Assigning Symbology to Published Layers

742
1
03-17-2021 10:47 AM
InvAdministrator
New Contributor

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?

 

0 Kudos
1 Reply
simoxu
by MVP Regular Contributor
MVP Regular Contributor