<br><br>On Wednesday, March 21, 2012, Bob Basques <<a href="mailto:Bob.Basques@ci.stpaul.mn.us">Bob.Basques@ci.stpaul.mn.us</a>> wrote:<br>> Can the LayerSwitcher menu be opened/closed from the startup URL of a page? as in:<br>
><br>> <myp-age-url>?LayerSwitcher=open (or layerswticher=closed)??<br>><br>> I have some automated system clients that would like use the two different start up options in certain business applications.<br>
><br>> 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 === 'open') {<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>