<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Hello Neelima,<br><br>Thanks for the file!, now I understand, uhmmm I compare both style.css (sdiff -s file1 file2) files but they are the same, also the Openlayers.js in both html, so not sure what is the solution, perhaps it is something to do with this code:<br><br><pre id="line1"><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>"></span><span>
<span id="line12"></span>        var map;
<span id="line13"></span>        function init(){
<span id="line14"></span>            map = new OpenLayers.Map('map', { controls: [] });
<span id="line15"></span>            map.addControl(new OpenLayers.Control.Navigation());
<span id="line16"></span>
<span id="line17"></span>            map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')}));
<span id="line18"></span>
<span id="line19"></span>            var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
<span id="line20"></span>                "http://vmap0.tiles.osgeo.org/wms/vmap0",
<span id="line21"></span>                {layers: 'basic'}, {'displayInLayerSwitcher':false} );
<span id="line22"></span>
<span id="line23"></span>            var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
<span id="line24"></span>                "http://t1.hypercube.telascience.org/cgi-bin/landsat7", 
<span id="line25"></span>                {layers: "landsat7"}, {'isBaseLayer': false});
<span id="line26"></span>
<span id="line27"></span>            var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
<span id="line28"></span>                "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
<span id="line29"></span>                {layers: "bathymetry,land_fn,park,drain_fn,drainage," +
<span id="line30"></span>                         "prov_bound,fedlimit,rail,road,popplace",
<span id="line31"></span>                 transparent: "true", format: "image/png" });
<span id="line32"></span>
<span id="line33"></span>            jpl_wms.setVisibility(false);
<span id="line34"></span>            dm_wms.setVisibility(false);
<span id="line35"></span>
<span id="line36"></span>            map.addLayers([ol_wms, jpl_wms, dm_wms]);
<span id="line37"></span>            if (!map.getCenter()) map.zoomToMaxExtent();
<span id="line38"></span>        }
<span id="line39"></span>    </span><span class="end-tag"></script></span><span><br><br>By the way, I have been the way to include code to measure as the layerswitcher, but without success so far, perhaps around there is the solution.<br><br>Hope this helps,<br><br>Gery</span><br></pre><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: neelima.emmani@iictechnologies.com<br>To: gamejihou@hotmail.com<br>CC: openlayers-users@lists.osgeo.org<br>Subject: RE: [OpenLayers-Users] layerswitcher minimize option<br>Date: Wed, 6 Jun 2012 09:40:06 +0000<br><br>


<style><!--
.ExternalClass .ecxhmmessage p
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style><style id="ecxowaParaStyle">
</style>


<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Gery,
<br>
<div>Please find the attached file , which describes my problem. The one i am trying to do is second image but with minimize and maximize options on layer switcher.<br>
<br>
<div style="font-family:Tahoma;font-size:13px">With Regards,<br>
Neelima Emmani<br>
<br>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr tabindex="-1">
<div style="direction:ltr" id="ecxdivRpF508629"><font face="Tahoma" color="#000000" size="2"><b>From:</b> Gery . [gamejihou@hotmail.com]<br>
<b>Sent:</b> Wednesday, June 06, 2012 1:12 PM<br>
<b>To:</b> Neelima Emmani; openlayers-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [OpenLayers-Users] layerswitcher minimize option<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><br>
Hello Neelima,<br>
<br>
Sorry but I didnt understand what you are trying to do, could you show 2 figures about that? perhaps one with what you have and the other about what you want. Nevertheless, check these links, perhaps this solves your problem: http://openlayers.org/dev/examples/fullScreen.html,
 http://openlayers.org/dev/examples/layerswitcher.html<br>
<br>
HTH,<br>
<br>
<div>
<div id="ecxSkyDrivePlaceholder"></div>
<hr id="ecxstopSpelling">
From: neelima.emmani@iictechnologies.com<br>
To: openlayers-users@lists.osgeo.org<br>
Date: Wed, 6 Jun 2012 04:49:28 +0000<br>
Subject: [OpenLayers-Users] layerswitcher minimize option<br>
<br>
<style id="ecxowaParaStyle">
.ExternalClass p
{margin-bottom:0;}

.ExternalClass
{direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt;}
.ExternalClass P
{margin-bottom:0;}
</style>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi All,<br>
I have layer switcher working very well inside the map. But , i want the layer switcher to be adjacent to the map. Which is also displayed well. Here comes my problem, I can all the map layers in the switcher but cannot minimize the layer switcher. Can any
 one tell me why? and where to solve it. <br>
<br>
I found following piece of code in layerswitcher.js file <br>
<br>
 // set mode to minimize<br>
       if(!this.outsideViewport) {<br>
            this.minimizeControl();<br>
        }<br>
And tried as below <br>
// set mode to minimize<br>
       if(this.outsideViewport) {<br>
            this.minimizeControl();<br>
        }<br>
<div>Even then one didnot find any difference . Can you please help me in getting the right way to solve this.<br>
 <br>
<div style="font-family:Tahoma;font-size:13px">With Regards,<br>
Neelima Emmani<br>
<br>
</div>
</div>
</div>
<br>
_______________________________________________ Users mailing list Users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users</div>
</div>
</div>
</div>
</div></div>                                          </div></body>
</html>