<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">Hi</font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">I can view my UK Layer via Mapserver with the following url: &#39;ms4w/cgi-bin/mapserv.exe?mode=map&amp;map=c:mapdirectory<b style="mso-bidi-font-weight: normal">&amp;layer=uk&#39;.</b> The <b style="mso-bidi-font-weight: normal">&amp;layer=uk </b>is calling my layer. </font></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">However I can’t find any documentation on how to call the layer when viewing my map within OpenLayers.</font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">I am currently trying to call the layer like this:</font></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"></font> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">var map, layer1, layer2;</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">var options = { maxExtent: bounds, maxResolution: 600, numZoomLevels: 10};</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">layer1 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,</font></font><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes"> </span></font></font></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes"></span>&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;uk&quot;, map: &#39;/ms4w/apps/openlayers-2.5/data/uk2.map&#39;, </font></font></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">minZoomLevel: 1, maxZoomLevel: 4 },</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">      </span>{ gutter: 15 });</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">layer2 = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">&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;250&quot;, map: &#39;/ms4w/apps/openlayers-2.5/data/uk2.map&#39;, </font></font></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">minZoomLevel: 5, maxZoomLevel: 10},</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">      </span>{ gutter: 15 });</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">      </span>map.addLayer(uk, 250);</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">      </span>map.zoomToExtent(bounds);</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">      </span>map.setCenter(bounds);</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes">      </span>map.zoomToMaxExtent();</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"></font> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">However I am just seeing pink tiles within OpenLayers.</font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"></font> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">Note: If my layers are set to default within my Mapfile all my layers are displayed.</font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">Thanks for any help in advance</font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3">Paul</font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"></font> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Times New Roman" size="3"></font> </p>
<p></p></p></div>