add comment regarding current handling of base layers

git-svn-id: http://svn.openlayers.org/trunk/openlayers@642 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-21 11:51:59 +00:00
parent 76156b7317
commit 823d2ddedd

View File

@@ -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;
}