Re-sourcing WebMap layer from one Hosted feature Layer to Another

a month ago
Labels (2)
New Contributor

Hello. I have a webmap that I designed a few months ago and I have used a hosted feature layer (geodatabase) from My Content as one of the layers I use the map. I have applied a number of properties to that layer. I have created a new hosted feature layer that contains the same table as my original hosted feature layer and I want to source the layer in my webmap to the new hosted feature layer so I do not have to reconfigure all the properties I had set on the layer. I have tried to use the AGOL Assistant to replace the layer, but it seems like it can only update service layer URL's in my webmap. Is there any ways I can re-source the layer in the map to the new hosted feature layer?

0 Kudos
1 Reply
MVP Regular Contributor

Updating the service layer URL is "re-sourcing" the layer, if I'm understanding your post correctly. If you look at the Web Map's JSON definition, you'll see that the URL is part of each layer's definition.

    "operationalLayers": [
            "id": "Sales_Hosted_2910",
            "layerType": "ArcGISFeatureLayer",
            "url": "",


Swapping URLs for your layers using the AGO Assistant retains all the other properties and accomplishes what you seem to be looking for. Just go to the item page of the new feature layer, find the service URL in the bottom-right. There's the URL you need to paste in.



- Josh Carlson
Kendall County GIS