<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: 'ms4w/cgi-bin/mapserv.exe?mode=map&map=c:mapdirectory<b style="mso-bidi-font-weight: normal">&layer=uk'.</b> The <b style="mso-bidi-font-weight: normal">&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("OpenLayers WMS",</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>"<a href="http://127.0.0.1/cgi-bin/mapserv.exe">http://127.0.0.1/cgi-bin/mapserv.exe</a>?", { layers: "uk", map: '/ms4w/apps/openlayers-2.5/data/uk2.map', </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("OpenLayers WMS",</font></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="3"><font face="Times New Roman">"<a href="http://127.0.0.1/cgi-bin/mapserv.exe">http://127.0.0.1/cgi-bin/mapserv.exe</a>?", { layers: "250", map: '/ms4w/apps/openlayers-2.5/data/uk2.map', </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>