<P>I need to have a custom layerswitcher [radio buttons, etc], and am having a hard time finding examples on modifying layer visibility or creating layers on the fly. So I have 2 questions.</P>
<P>How do I determine the number of current layers?</P>
<P>Given a layer I just created by clicking a checkbox (or one that already existed)...how do I grab the layer to modify visibility?</P>
<P>OpenLayers.Layer.[layername].setVisibility(true); doesn't work since it says the layer doesn't exist.</P>
<P>Thanks,<BR>Levii</P>