Update Renderer of hosted Feature Layer

347
2
Jump to solution
02-12-2024 02:31 AM
jauhari_mani
Occasional Contributor

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
1 Solution

Accepted Solutions
Sage_Wall
Esri Contributor

Hi @jauhari_mani ,

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

View solution in original post

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
Occasional Contributor

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