as I thought, I forgot some other small changes. To support multiple
layers, you should also modify Map.js around line 84 to look like this
else {
this.map.addLayers(this.baseLayer);
}
this.map.setBaseLayer(this.baseLayer[0], true);
While looking into it, I also noticed that when you add the layer
switcher control in the config.js, you will no longer have the default
control (zoom,etc.) To solve that, one option is to add the
layerSwitcher as a default control near line 92 of Map.js and in the
OpenLayersUtil.js. Let me know if you need more detailed directions on this.
I may try to put a patch together to ease the configuration for single
and multiple layers.
Cheers,
Viv