<div dir="ltr">Hi Brad,<br><br>Wow...quite similar to what I aim for: full screen map and floating window with layer switcher (loaded/adjusted through ajax). I will try to look on how you control layer visibility and switch base layers through code and if I have questions I return if you do not mind.<br>
<br>All the best,<br>Adorian<br><br><div class="gmail_quote">On Fri, Sep 26, 2008 at 10:06 AM, Brad Spencer <span dir="ltr">&lt;<a href="mailto:bspencer@cubewerx.com.au">bspencer@cubewerx.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Adorin,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I have done this quite successfully. You can see it on <a href="http://demos.numaps.com.au/polypika.html" target="_blank">http://demos.numaps.com.au/polypika.html</a>.
The DemographicDrapes section is based on loading a list of drape definitions
from an XML file into a tree.js library.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Works a treat.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Cheers, Brad….</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a>] <b>On Behalf
Of </b>Adorian Ardelean<br>
<b>Sent:</b> Friday, September 26, 2008 3:35 PM<br>
<b>To:</b> <a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a><br>
<b>Subject:</b> [OpenLayers-Users] custom layer switcher 1</span></p>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<div>

<p style="margin-bottom: 12pt;">Hi,<br>
<br>
Perhaps a very simple question: I would like to build a tree-like custom layer
switcher in a floating div outside of OL map div.<br>
Could layers visibility (on/off) be controlled through code (base layers and
the rest)? I did search the Nabble user forum and the examples on OL site, but
did not find anything on this issue.<br>
<br>
All the best,<br>
Adorian<br clear="all">
<br>
-- <br>
Dr. Adorian Ardelean<br>
coordinator of myNature Project<br>
<br>
<a href="http://mybiosis.info/nature/portal.php?pagename=firstpage" target="_blank">http://mybiosis.info/nature/portal.php?pagename=firstpage</a>
[a Romanian biodiversity-database]</p>

</div>

</div></div></div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>Dr. Adorian Ardelean<br>coordinator of myNature Project<br><br><a href="http://mybiosis.info/nature/portal.php?pagename=firstpage">http://mybiosis.info/nature/portal.php?pagename=firstpage</a> [a Romanian biodiversity-database]<br>
<br>
</div>