<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi all.<br>I've really got stuck in this problem and need some help as i'm a newbie using openlayers with mapserver.<br>In mapfile i've set output to be:<br>&nbsp; EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -180 -90 180 90 # Geographic<br>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 800 400<br>&nbsp; IMAGECOLOR&nbsp;&nbsp;&nbsp;&nbsp; 128 128 255<br><br>when
 i request mapserver through URL, i recieve a complete 800*400 image, 
but when i use openlayers i get a 800*400 image which original map fills
 512*256 of the center and other pixels are filled with IMAGECOLOR.<br>this is my code:<br>&nbsp;&nbsp;&nbsp; map = new OpenLayers.Map( 'map',{'tileSize': new OpenLayers.Size(400,400)} );<br>&nbsp; layer = new OpenLayers.Layer.MapServer( "World
 Map",<br><span>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "<a rel="nofollow" target="_blank" href="http://localhost/cgi-bin/mapserv.exe"><span class="yshortcuts" id="lw_1307207861_0">http://localhost/cgi-bin/mapserv.exe</span></a>", {map: '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, width: 800}, {singleTile: true} );</span><br><br>&nbsp;&nbsp;&nbsp; map.addLayer(layer);<br>&nbsp;&nbsp;&nbsp; map.zoomToMaxExtent();<br><br>I asked this question in openlayers mailing list with no success. It sounds it is related to mapserver.<br>Any help would be greatly appreciated<br><br>Regards (also sorry if my english is not very good)<br></div>
</div></body></html>