AnsweredAssumed Answered

remove_layer, add_layer from Web Map

Question asked by Pfilipelli on Jul 25, 2018
Latest reply on Jul 30, 2018 by Pfilipelli

Hello - 


I have published a Web Map that I have styled in Pro and am trying to figure out a workflow to keep the web map and update the feature layer. 


My workflow looks like this:


Publish map from pro to AGOL -> make changes to symbology, pop ups etc in pro -> remove layer from web map->overwrite the layer->add layer back to map ->finish.


The issue is that the added layer no longer holds any of the symbology, pop up information, extents, etc. that were defined in Pro. 


This is curious to me because if I were to manually remove each layer and re-add them in the map it works fine; however, using remove_layer and add_layer with the API doesn't do the same. 


Can this be accomplished?