Create Dynamic Layer List Using Multiple Services

633
1
12-07-2012 03:58 AM
CraigMcDade
Occasional Contributor III
I'm trying to adapt this sample so that when I have multiple services in the map, all of the layers from each service show in the layer list.

I have attempted a few edits without any luck. The best I can get is one service or the other, but not both.

Is there a way to edit
function buildLayerList(layer) {
        var items = dojo.map(layer.layerInfos,function(info,index){


so that it referencees multiple services? And is this even what I need to worry about? There are other places in the code that would need to be amended, but these are the two that stick out to me.
0 Kudos
1 Reply
AmeliaMalcolm
New Contributor II
Hi - Complete newbie here, so not sure if this will really *bump* this post or not,

but we are also trying to do this and have not had any luck - surelely someone else has managed this in the last year and a half?

Any help would be most appreciated.
0 Kudos