<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>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Roads" <br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE&nbsp;&nbsp;&nbsp; POSTGIS <br>&nbsp;&nbsp;&nbsp; CONNECTION&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "user=suresh password=suresh dbname=sitedatabase host=localhost port=5432" <br>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "stretch_geom from stretch" <br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ON <br>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LINE <br>&nbsp;&nbsp;&nbsp; CLASS <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; color &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 255 0 255 <br>&nbsp;&nbsp;&nbsp; END <br>END # Layer <br><br>The HTML template is a standard one with the following line in init() function<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; map = new OpenLayers.Map( 'map' ); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var layer1 = new OpenLayers.Layer.MapServer( "Circle", "http://localhost/cgi-bin/mapserv", {map: '/var/www/vedsur/MumbaiPG.map'}, {gutter: 15}); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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>.