Select to view content in your preferred language

Set Default Symbology When Using Service URL

283
2
03-06-2024 06:19 AM
JoshBillings
Frequent Contributor

I have a view layer of a hosted feature service that I am trying to set default symbology for.

I set the symbology of the hosted feature service and the view layer in the Visualization tab of the item properties for both items.

When I add the service URL to a new map, the symbology I set doesn't get brought in. I will be sharing this view layer with an outside organization, so sharing the URL of the view layer is the easiest option in this case. Is there something that I might be missing to make this happen?

Thanks - Josh

0 Kudos
2 Replies
RussRoberts
Esri Notable Contributor

Saving from the viz tab will not save it back to the service but will store it in the item. You would have to update the definition of the layer at the REST endpoint. https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-layer-.htm

0 Kudos
JoshBillings
Frequent Contributor

ah got it! Thank you @RussRoberts. Would you happen to know how to get the drawingInfo JSON for any of the ArcGIS Online symbology?

0 Kudos