<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I am trying to display a simple postgis road layer with Mapserver 5 and Openlayers. I am not getting the PINK screen, suggesting success in layer drawing. However, the map is blank. I know that the postgis is installed properly since I do a bit of GIS computations with the data stored in it with PHP. <br><br>The important parts of map files are provided belowLAYER
<br> NAME "Roads"
<br> CONNECTIONTYPE POSTGIS
<br> CONNECTION "user=suresh password=suresh dbname=sitedatabase host=localhost port=5432"
<br> DATA "stretch_geom from stretch"
<br> STATUS
ON
<br> TYPE LINE
<br> CLASS
<br> color 255 0 255
<br> END
<br>END # Layer
<br><br>The HTML template is a standard one with the following line in init() function<br><br> map = new OpenLayers.Map( 'map' );
<br> var layer1 = new OpenLayers.Layer.MapServer( "Circle", "http://localhost/cgi-bin/mapserv", {map: '/var/www/vedsur/MumbaiPG.map'}, {gutter: 15});
<br> map.addLayer(layer1);
<br><br>Have been struggline with this problem for a while. Please help.<br><br>Thanks and regards,<br>Suresh<br><br></td></tr></table><br>
<!--1--><hr size=1></hr> Love Cricket? Check out live scores, photos, video highlights and more. <a href="http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com" target="_blank"> Click here</a>.