Hello all,
I am kinda confused. If you look at the different mapservicelayers such as ArcgisDynamicMapServiceLayer and AcrgisTiledMapServiceLayer etc you can see that the object actually describes a mapservice and not an individual layer.
Unless i am missing something.
The object does keep track of the layers but it is not an individual layer. So for me it makes way more sense to name the classes ArcgisTiledMapservice. This would make it (for me at least) less confusing.
For example in my code i need to get an individual layer, i can loop trough all the layers via the layerInfos array.
At which point i have an layerinfo. With the layerInfo ID i can get the actual layer from the map via map.getLayer(id)
Which does make sense but not if you are for the first time looking at the api and thinking you are working with a layer when in fact it is a mapservice.
I can understand it would require a lot of work for everyone if the api gets changed but i wanted to post it anyway.
Greetings
Jeroen Wisse