Is it possible to change the Url of a FeatureLayer? For example, changing
"https://oldserver/arcgis/rest/services/myfolder/mymapservice/MapServer/1"
to
"https://newserver/arcgis/rest/services/myfolder/mymapservice/MapServer/1"
When I try this:
fLyr.manager.update_definition({ "url":sNewLayerUrl })
I get "RuntimeError: Invalid URL (Error Code: 400)".
Solved! Go to Solution.
hello Mark,
don't go so far, you don't need to go until the FeatureLayer object
Stay at the "Item" level, you just have to change the Item properties
item.update(item_properties={'url':newUrlString})
hello Mark,
don't go so far, you don't need to go until the FeatureLayer object
Stay at the "Item" level, you just have to change the Item properties
item.update(item_properties={'url':newUrlString})
It works, thanks.