give the radio buttons for the baselayers in the layer switcher control a name depending on the layerswitcher, this avoids problems with several maps and several layer switchers in the same page, r=bartvde (Closes #2331)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9772 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2009-11-02 12:24:03 +00:00
parent 6568eb4d8a
commit 6f17fa1c9a
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ OpenLayers.Control.LayerSwitcher =
// create input element
var inputElem = document.createElement("input");
inputElem.id = this.id + "_input_" + layer.name;
inputElem.name = (baseLayer) ? "baseLayers" : layer.name;
inputElem.name = (baseLayer) ? this.id + "_baseLayers" : layer.name;
inputElem.type = (baseLayer) ? "radio" : "checkbox";
inputElem.value = layer.name;
inputElem.checked = checked;