Users,<br><br>I am having trouble with my Openlayers map. I have a mapfile that I am trying to view inside of Openlayers. I feel like I am doing every thing right but all I am getting to show up inside of Openlayers is a white image. Below I will include both my map file and my openlayers html file. Any suggestions on what I am doing wrong would be greatly appreciated.<br>
<br>///////////////////////////////Mapfile///////////////////////////////////////////<br><br>MAP<br>  EXTENT -84.321869 33.752878 -75.400119 36.588157<br>  FONTSET &quot;fonts/fonts.list&quot;<br>  IMAGECOLOR 255 255 255<br>
  IMAGETYPE png<br>  SHAPEPATH &quot;/ms4w/apps/tutorial/data&quot;<br>  SIZE 800 600<br>  STATUS ON<br>  UNITS METERS<br>  NAME &quot;MS&quot;<br><br>  OUTPUTFORMAT<br>    NAME &quot;png&quot;<br>    MIMETYPE &quot;image/png&quot;<br>
    DRIVER &quot;GD/PNG&quot;<br>    EXTENSION &quot;png&quot;<br>    IMAGEMODE &quot;PC256&quot;<br>    TRANSPARENT FALSE<br>  END<br><br>  OUTPUTFORMAT<br>    NAME &quot;AGG&quot;<br>    MIMETYPE &quot;image/png; mode=24bit&quot;<br>
    DRIVER &quot;AGG/PNG&quot;<br>    EXTENSION &quot;png&quot;<br>    IMAGEMODE &quot;RGB&quot;<br>    TRANSPARENT FALSE<br>  END<br><br>  PROJECTION<br>    &quot;init=epsg:32119&quot;<br>  END<br>  LEGEND<br>    IMAGECOLOR 255 255 255<br>
    KEYSIZE 20 10<br>    KEYSPACING 5 5<br>    LABEL<br>      SIZE MEDIUM<br>      TYPE BITMAP<br>      BUFFER 0<br>      COLOR 0 0 0<br>      FORCE FALSE<br>      MINDISTANCE -1<br>      MINFEATURESIZE -1<br>      OFFSET 0 0<br>
      PARTIALS TRUE<br>    END<br>    POSITION LL<br>    STATUS OFF<br>  END<br><br>  QUERYMAP<br>    COLOR 255 255 0<br>    SIZE -1 -1<br>    STATUS OFF<br>    STYLE HILITE<br>  END<br><br>  SCALEBAR<br>    ALIGN CENTER<br>
    COLOR 0 0 0<br>    IMAGECOLOR 255 255 255<br>    INTERVALS 4<br>    LABEL<br>      SIZE MEDIUM<br>      TYPE BITMAP<br>      BUFFER 0<br>      COLOR 0 0 0<br>      FORCE FALSE<br>      MINDISTANCE -1<br>      MINFEATURESIZE -1<br>
      OFFSET 0 0<br>      PARTIALS TRUE<br>    END<br>    POSITION LL<br>    SIZE 200 3<br>    STATUS OFF<br>    STYLE 0<br>    UNITS MILES<br>  END<br><br>  WEB<br>    IMAGEPATH &quot;/ms4w/apache/htdocs/tmp/ms_tmp&quot;<br>
    IMAGEURL &quot;tmp/ms_tmp&quot;<br>    QUERYFORMAT text/html<br>    LEGENDFORMAT text/html<br>    BROWSEFORMAT text/html<br>  END<br><br><br><br>  LAYER<br>    CONNECTION &quot;user=postgres dbname=postgis password=help37546&quot;<br>
    CONNECTIONTYPE POSTGIS<br>    DATA &quot;the_geom FROM (<br>    SELECT <br>    Zipcodes.the_geom AS the_geom, <br>    Zipcodes.gid as gid, <br>    Zip.income as income<br>    FROM zipcodes JOIN zip <br>    ON zipcodes.zcta = zip.zcta) AS new_table USING UNIQUE gid USING SRID=-1&quot;<br>
    FILTER &quot;income &gt; 0 and income &lt;= 200000&quot;<br>    NAME &quot;themelayer&quot;<br>    PROJECTION<br>      &quot;init=epsg:32119&quot;<br>    END<br>    STATUS ON<br>    TYPE POLYGON<br>    UNITS METERS<br>
    CLASS<br>      STYLE<br>        ANGLE 360<br>        COLOR 255 228 181<br>        OPACITY 100<br>        SYMBOL 0<br>      END<br>    END<br>  END<br>END<br><br><br>/////////////////////////////////////openlayers file///////////////////////////////////////////////////////<br>
<br><br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;MapServer Layer&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;../theme/default/style.css&quot; type=&quot;text/css&quot; /&gt;<br>
    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; /&gt;<br>    &lt;script src=&quot;<a href="http://openlayers.org/dev/lib/OpenLayers.js">http://openlayers.org/dev/lib/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>
    &lt;script type=&quot;text/javascript&quot;&gt;<br>       <br>        var map, layer;<br><br>       function init(){<br>    map = new OpenLayers.Map(&#39;map&#39;, {<br>    projection: &quot;epsg:32119&quot;,<br>    <br>
    numZoomLevels: 14,<br>   <br>    units : &quot;meters&quot;,<br>    controls: [<br>    new<br>OpenLayers.Control.ZoomToMaxExtent(),<br>    new<br>OpenLayers.Control.PanZoomBar({zoomWorldIcon: true}),<br>    new<br>OpenLayers.Control.LayerSwitcher({&#39;ascending&#39;:false}),<br>
    new<br>OpenLayers.Control.MousePosition(),<br>    new<br>OpenLayers.Control.MouseDefaults(),<br>    new<br>OpenLayers.Control.KeyboardDefaults()<br>    ]                    <br>          }); <br>   layer = new OpenLayers.Layer.MapServer( &quot;County Map&quot;,<br>
       &quot;<a href="http://localhost/cgi-bin/mapserv.exe">http://localhost/cgi-bin/mapserv.exe</a>&quot;, {map: &quot;C:/ms4w/Apache/htdocs/test_mapfile_edit.map&quot;, layers: &quot;themelayer&quot;} );<br>      <br>   map.addLayer(layer);<br>
   <br>   map.zoomToMaxExtent();<br>        }<br>        <br>    &lt;/script&gt;<br>  &lt;/head&gt;<br>  &lt;body onLoad=&quot;init()&quot;&gt;<br>    &lt;div id=&quot;title&quot;&gt;MapServer Layer&lt;/div&gt;<br>    &lt;div id=&quot;tags&quot;&gt;&lt;/div&gt;<br>
    &lt;div id=&quot;shortdesc&quot;&gt;Shows MapServer Layer&lt;/div&gt;<br>    &lt;div id=&quot;map&quot; class=&quot;smallmap&quot;&gt;&lt;/div&gt;<br>    &lt;div id=&quot;docs&quot;&gt;<br>        <br>    &lt;/div&gt;<br>
  &lt;/body&gt;<br>&lt;/html&gt;<br>