<font size="2">I believe that there is a maximizeControl() method for the LayerSwitcher() control. <br><br>Try something like:<br><br>var layer_switcher = new OpenLayers.Control.LayerSwitcher();<br>map.addControl(layer_switcher);
<br>layer_switcher.maximizeControl();<br><br>David.<br></font><br><br><div><span class="gmail_quote">On 8/7/07, <b class="gmail_sendername">Marc Desharnais</b> <<a href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br><br>Thanks Gregor for your answer. I know how to add a selection panel to a
<br>map. The question i s really about showing the panel by default.<br>I want the panel to be shown by default without having to click on the<br>"+" in the corner to display it.<br><br>It's a matter of showing the options of the map for the average user
<br>that is new to geomatic and won't click on anything to try to see what<br>it does.<br>So I want to show the options available by default.<br><br>regards :)<br><br>Marc<br><br><br><br>Gregor Mosheh wrote:<br>> Marc Desharnais wrote:
<br>>> I was wondering if it's possible to unhide the panels on the side of<br>>> the map. Like the selection panel where you pick the base layer and<br>>> the overlay that you want.<br>><br>> To show them, you add the control to your map's constructor.
<br>> Example:<br>> var controls = [new OpenLayers.Control.LayerSwitcher()];<br>> var map = new OpenLayers.Map('map',{'controls':controls});<br>><br>> The documentation also mentions a addControl() method,
e.g.<br>> map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>><br>> That method may or may not be in the version you downloaded; this<br>> stuff changes quickly and sometimes the doc mentions features that are
<br>> only in the Subversion version, not in 2.4 release.<br>><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>