Hi Alexander Nohe. Sorry, I should have been a bit more specific. Yes, if I use the service url with a null array, it will load all of the layers. However, take this layer for example: "original/SWPA (MapServer) "
It has a lot of layers. So if I just pass the url and a null array, it will load all of them. But if I only want Roads (ID=2) and all of its sublayers (3, 4, 5), I have to pass an array of (2, 3, 4, 5), whereas on iOS I only have to send 2. So if I don't know that the IDs of Roads' sublayers are 3, 4, 5, then I need to initialize Roads and go through the array to get the sublayer IDs.
Additionally, if I only want the Interstate Highways sublayer of roads, I have to pass (2, 3). On iOS I only have to pass 3.
I'm just trying to see if there are any other options so that we can set our data up better.
Thanks,
Josh