I have a featureserver with url "https://<url_omitted>/FeatureServer".
I want to be able to load that into my map, with all the associated layers.
What is the way to do this?
Currently i am having to poll the server, get each layer and create using FeatureLayer. Which is a pain as I need to consider hierarchies and more.
You can use Layer.fromArcGISServerUrl(), and it will load all the layers in the feature service.