HOW TO
In some cases, when importing hosted feature layers published from ArcGIS Pro from another project in ArcGIS Online, the symbology is not preserved. This article highlights the workflow to transfer symbology from a hosted feature layer published from ArcGIS Pro to another layer in the admin REST endpoint in ArcGIS Online by copying its JSON script.
Note: This workflow works with hosted feature layer published from ArcGIS Pro. Symbology definition edited from ArcGIS REST Services Directory for layers added within ArcGIS Online is not honored and is reverted back to the default JSON definition.
Note: To edit the JSON script, access the ArcGIS REST Administrator Directory.
{ "drawingInfo":{"renderer":{"type":"simple","symbol": {"type":"esriSMS","style":"esriSMScircle","color": [128,0,123,255],"size":4,"angle":0,"xoffset":0,"yoffset":0,"outline":"{"color": [0,0,0,255],"width":1}}},"scaleSymbols":false,"transparency":0,"labelingInfo":null} }
Note: If the schema of your layers do not match, for example if the second layer is missing a field or a domain that is used in the symbology (i.e. referenced in the drawing info), updating layer definition may still return success but the symbology of the layer won't change.
Get help from ArcGIS experts
Download the Esri Support App