<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi David,<br>
<br>
You are right and now the panel is *maximized* when the page is loaded.<br>
I must have missed this one when I browsed the functions!<br>
<br>
Many thanks! :)<br>
<br>
Marc<br>
<br>
<br>
David Fawcett wrote:
<blockquote
 cite="mid:ed718af50708070608n21d0faf0r187f0b1412e99ce8@mail.gmail.com"
 type="cite"><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> &lt;<a moz-do-not-send="true"
 href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca
  </a>&gt; 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>
&gt; Marc Desharnais wrote:
    <br>
&gt;&gt; I was wondering if it's possible to unhide the panels on the
side of<br>
&gt;&gt; the map. Like the selection panel where you pick the base
layer and<br>
&gt;&gt; the overlay that you want.<br>
&gt;<br>
&gt; To show them, you add the control to your map's constructor.
    <br>
&gt; Example:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;var controls = [new OpenLayers.Control.LayerSwitcher()];<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;var map = new OpenLayers.Map('map',{'controls':controls});<br>
&gt;<br>
&gt; The documentation also mentions a addControl() method, e.g.<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
&gt;<br>
&gt; That method may or may not be in the version you downloaded; this<br>
&gt; stuff changes quickly and sometimes the doc mentions features that
are
    <br>
&gt; only in the Subversion version, not in 2.4 release.<br>
&gt;<br>
    <br>
_______________________________________________<br>
Users mailing list<br>
    <a moz-do-not-send="true" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
    <a moz-do-not-send="true"
 href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>