<div>Thanks for your responses</div>
<div> </div>
<div>I have now removed the map parameter as suggested. I am just trying to display one layer correctly and i will then add my second layer when my single layer looks right. </div>
<div> </div>
<div>My layer is now displaying tiled across the screen several times and quite zoomed out, i cannot zoom in or out</div>
<div> </div>
<div>My code now looks 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>      <br>      <br>      function init(){<br>          map = new OpenLayers.Map(&#39;map&#39;, options);</div>
<div>      layer1 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,<br>      &quot;<a href="http://localhost/cgi-bin/mapserv.exe?mode=map&amp;map=c:/ms4w/apps/openlayers-2.5/data/uk2.map">http://localhost/cgi-bin/mapserv.exe?mode=map&amp;map=c:/ms4w/apps/openlayers-2.5/data/uk2.map</a>&quot;, { layers: &quot;250&quot; },<br>
      { gutter: 15, minZoomLevel: 1, maxZoomLevel: 4 });</div>
<div>      map.addLayer(layer1);<br>      <br>      map.zoomToExtent(bounds);<br>      map.setCenter(bounds);<br>      map.zoomToMaxExtent();</div>
<div>      map.addControl(new OpenLayers.Control.PanZoomBar());<br>      map.addControl(new OpenLayers.Control.MousePosition());<br>      }</div>
<div> </div>
<div>Any more much much appreciatted</div>
<div> </div>
<div>Cheers<br><br></div>
<div class="gmail_quote">2009/9/9 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Paul,<br><br>You can copy the image url by right clicking on it and open it in a new window. You&#39;ll see the request url constructed by OpenLayers and maybe an error message from MapServer.<br>
<br>I noticed that you use the &quot;map&quot; parameter. WMS has no such parameter so it should be part of your main url, like below. Also, if you look in the OpenLayers/Layer/WMS.js code, you&#39;ll see that this object takes 4 parameters, the 3e being the server-side &quot;parameters&quot; and the 4th being the OpenLayers object &quot;options&quot;. min/maxZoomLevel are not parameters but OL options. 
<div class="im"><br><br>layer1 = new OpenLayers.Layer.WMS(<br>&quot;OpenLayers WMS&quot;,<br><br></div>&quot;<a href="http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/openlayers-2.5/data/uk2.map&amp;" target="_blank">http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/openlayers-2.5/data/uk2.map&amp;</a>&quot;,<br>
{ layers: &quot;uk&quot;},<br><br>{ gutter: 15, minZoomLevel: 1, maxZoomLevel: 4 }<br>);<br><br><br>If you still get pink tiles, copy the link in a new window to see the error.<br><br>Regards,<br><br>Alexandre<br><br>Paul Curran wrote:<br>

<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5"><br>Hi<br><br>I can view my UK Layer via Mapserver with the following url: &#39;ms4w/cgi-bin/mapserv.exe?mode=map&amp;map=c:mapdirectory*&amp;layer=uk&#39;.* The *&amp;layer=uk *is calling my layer.<br><br>
However I can’t find any documentation on how to call the layer when viewing my map within OpenLayers.<br><br>I am currently trying to call the layer like this:<br><br>var map, layer1, layer2;<br><br>var options = { maxExtent: bounds, maxResolution: 600, numZoomLevels: 10};<br>
<br>layer1 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,<br><br>&quot;<a href="http://127.0.0.1/cgi-bin/mapserv.exe" target="_blank">http://127.0.0.1/cgi-bin/mapserv.exe</a>?&quot;, { layers: &quot;uk&quot;, map: &#39;/ms4w/apps/openlayers-2.5/data/uk2.map&#39;,<br>
<br>minZoomLevel: 1, maxZoomLevel: 4 },<br><br>{ gutter: 15 });<br><br>layer2 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,<br><br>&quot;<a href="http://127.0.0.1/cgi-bin/mapserv.exe" target="_blank">http://127.0.0.1/cgi-bin/mapserv.exe</a>?&quot;, { layers: &quot;250&quot;, map: &#39;/ms4w/apps/openlayers-2.5/data/uk2.map&#39;,<br>
<br>minZoomLevel: 5, maxZoomLevel: 10},<br><br>{ gutter: 15 });<br><br>map.addLayer(uk, 250);<br><br>map.zoomToExtent(bounds);<br><br>map.setCenter(bounds);<br><br>map.zoomToMaxExtent();<br><br>However I am just seeing pink tiles within OpenLayers.<br>
<br>Note: If my layers are set to default within my Mapfile all my layers are displayed.<br><br>Thanks for any help in advance<br><br>Paul<br><br></div></div>------------------------------------------------------------------------<br>
<br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
 <br></blockquote><br><br>-- <br>Alexandre Dubé<br>Mapgears<br><a href="http://www.mapgears.com/" target="_blank">www.mapgears.com</a><br><br></blockquote></div><br>