<div>Hi,</div>
<div> </div>
<div>I am having trouble displaying a specific layer from my mapfile. I have two layers called &#39;250&#39; and &#39;uk&#39;. I wish to display my &#39;250&#39; layer origninally, then zoom closer to display my &#39;uk&#39; layer. however both my layers are currenlty displayed at all times.</div>

<div> </div>
<div>Am i going about this the correct way by having two variables &#39;layer1 and &#39;layer2&#39; for layers from the same mapfile?</div>
<div> </div>
<div>Currently my code is as follows</div>
<div> </div>
<div>var bounds = new OpenLayers.Bounds(0, 0, 660046, 1229782);<br>var map, layer1, layer2;<br>var options = { maxExtent: bounds, maxResolution: 600, numZoomLevels: 10};</div>
<div> </div>
<div>layer1 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,<br>&quot;<a href="http://127.0.0.1/cgi-bin/mapserv.exe">http://127.0.0.1/cgi-bin/mapserv.exe</a>?&quot;, { layers: <strong>&quot;250&quot;,</strong> map: &#39;/ms4w/apps/openlayers-2.8/data/uk2.map&#39;, minZoomLevel: 1, maxZoomLevel: 4 },<br>
      { gutter: 15 });</div>
<div> </div>
<div>layer2 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,<br> &quot;<a href="http://127.0.0.1/cgi-bin/mapserv.exe">http://127.0.0.1/cgi-bin/mapserv.exe</a>?&quot;, { layers: &quot;<strong>uk</strong>&quot;, map: &#39;/ms4w/apps/openlayers-2.8/data/uk2.map&#39;, minZoomLevel: 5, maxZoomLevel: 10 },<br>
      { gutter: 15 });</div>
<div> </div>
<div>map.addLayer(layer1, layer2);</div>
<div> </div>
<div>Thanks for any help in advance</div>