<br><br>On Wednesday, March 21, 2012, Bob Basques &lt;<a href="mailto:Bob.Basques@ci.stpaul.mn.us">Bob.Basques@ci.stpaul.mn.us</a>&gt; wrote:<br>&gt; Can the LayerSwitcher menu be opened/closed from the startup URL of a page? as in:<br>
&gt;<br>&gt; &lt;myp-age-url&gt;?LayerSwitcher=open  (or layerswticher=closed)??<br>&gt;<br>&gt; I have some automated system clients that would like use the two different start up options in certain business applications.<br>
&gt;<br>&gt; I could make another page I suppose, but that seems like the wrong approach over the long run.<br><br>What about something like this:<br><br>var params = OpenLayers.Util.getParameters();<br>if (params.LayerSwitcher === &#39;open&#39;) {<br>
    layersSwitcher.maximize();<br>} else {<br>    layerSwitcher.minimize();<br>}<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>