Update Renderer of hosted Feature Layer

174
2
a week ago
jauhari_mani
New Contributor III

Hi,

I have a hosted feature layer, and I aim to dynamically modify its renderer using client-side JavaScript code. While I can successfully update it to reflect changes locally, my objective is to persistently push the updated renderer to the ArcGIS Online hosted layer for subsequent usage. 

Suggest some way around to this.

Regards,
Mani

0 Kudos
2 Replies
Sage_Wall
Esri Contributor

Hi @jauhari_mani ,

The FeatureLayer save and saveAs methods can be used to save the modified layer to ArcGIS Online.

0 Kudos
jauhari_mani
New Contributor III

Hi @Sage_Wall ,

Thank you!! it worked but one additional error that came up is when I update my renderer (unique value renderer) with symbol of webStyle symbol. It throws me error of unsupported symbol.

Can you help with this as well.

Regards,

Mani 

0 Kudos