I had 30 layers and added 3 more layers in a mxd and refreshed an existing map service. When I add the map service in ArcGIS Online using "Add Layer Form Web" to a new webmap lists 33 layers: https://domain/arcgis/rest/services/Projects/MapServer
The problem is that I have an existing webmap with 30 layers and I would like to add the 3 missing ones - 3 related tables.
How do I refresh the existing webmap adding new layers or in my case the 3 tables? Is there a way to refresh?
Simbology in WebMap has been customized, so I am trying to avoid removing and adding again the map service.
Unfortunately, there is no simple way to refresh your existing map. The sublayers of a map service get written to the web map. Thus, subsequent changes to the map service are not reflected in the web map.
Having said that, there is an unsupported tool you can use to look at and manually edit the JSON of the web map definition.
If you compare your existing map with 30 layers to the one with 33 layers, you may be able to copy some of the JSON that defines the tables from one map to the other. While I've used this tool before, I've not tried your particular task. Note, again that this is an unsupported tool and if you make a mistake, you can break your map and there won't be a way to recover it. I'd suggest saving a copy of it and working on that map.
Thank you Mike,
I am currently checking this option. Also I am thinking about simply adding the new version of the map service in my WebMap and redo the customization.
Thank you for your advice.