diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index f686fbb302..1dd91f9267 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -151,6 +151,12 @@ OpenLayers.Map.prototype = { } this.layers.push(layer); + // hack hack hack - until we add a more robust layer switcher, + // which is able to determine which layers are base layers and + // which are not (and put baselayers in a radiobutton group and + // other layers in checkboxes) this seems to be the most straight- + // forward way of dealing with this. + // if (layer.isBaseLayer()) { this.baseLayer = layer; }