dojo.connect(this.map, 'onLayerAdd', this, function(layer) {
this.layerInfos.push({
layer: layer
});
this.refresh();
});String[] serverUrls = {
//"<url>[,<token>]"
//For ex. (secured server): "http://myserver.mycompany.com/arcgis/rest/services,ayn2C2iPvqjeqWoXwV6rjmr43kyo23mhIPnXz2CEiMA6rVu0xR0St8gKsd0olv8a"
//For ex. (non-secured server): "http://sampleserver1.arcgisonline.com/arcgis/rest/services"
"http://sampleserver1.arcgisonline.com/arcgis/rest/services",
"http://sampleserver2.arcgisonline.com/arcgis/rest/services" //NOTE - no comma after the last item
};String[] serverUrls = {
//"<url>[,<token>]"
//For ex. (secured server): "http://myserver.mycompany.com/arcgis/rest/services,ayn2C2iPvqjeqWoXwV6rjmr43kyo23mhIPnXz2CEiMA6rVu0xR0St8gKsd0olv8a"
//For ex. (non-secured server): "http://sampleserver1.arcgisonline.com/arcgis/rest/services"
"http://geo-arcgis.abc-efg.de:6080/arcgis/rest/services"
};[Dominik,
You may have resolved this problem by now. But, I ran into the same issue earlier this week. I was just able to resolve it by following this example: Add two dynamic maps | ArcGIS API for JavaScript . Maybe it will work for you as well.
Ashley