hello <br><br>i would like to have a layers switcher in external of the map box.<br><br>is it possible to use OL for or is it necessary to use a other JS library with<br><br><br><br>i thing about something like that <br><br>
</script><br> function valider()<br>{ var valeur = document.choisir.nomdeCouche;<br><br> for (var i=1;i < valeur.length; i++)<br> { if ( valeur[i].checked )<br> { map.layerContainerDiv.children([valeur[i].value].<b style="color: rgb(204, 0, 0);">setvisible=true</b>);<br>
} else {map.layerContainerDiv.children([valeur[i].value])<b style="color: rgb(204, 0, 0);">.setvisible=false</b>;}<br> }<br>}</script><br><br> <FORM form id='choisir' name='choisir' method=get action="javascript:void(0);" onSubmit="valider(); return false;"><br>
<input id="wms1" name="nomdeCouche" type="checkbox" value="wms1"><br><br><input id="wms2" name="nomdeCouche" type="checkbox" value="wms2"><br><br>
<input id="wms3" name="nomdeCouche" type="checkbox" value="wms3"><br><br><input id="wms4" name="nomdeCouche" type="checkbox" value="wms4"><br><br>
<input type="submit" value="ajouter" ><br> </FORM><br><br>thanks for your comments<br>