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:
@@ -151,6 +151,12 @@ OpenLayers.Map.prototype = {
|
|||||||
}
|
}
|
||||||
this.layers.push(layer);
|
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()) {
|
if (layer.isBaseLayer()) {
|
||||||
this.baseLayer = layer;
|
this.baseLayer = layer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user