<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">The reason for this is that your WMS server or wherever you are getting the data will not draw layers larger than 2048px wide.&nbsp; OpenLayers.Layer.WMS.Untiled pulls down an image 4x the size of the viewport.&nbsp; (i.e. viewport is 1000x800 than the requested image is 2000x1600.)&nbsp; I know mapserver's default max width is 2048.&nbsp; If you can recompile your mapserver binaries then you can change that default max width.&nbsp; Another solution is to use OpenLayers.Layer.WMS (not untiled) so it pulls smaller images from the WMS server.<br><br>Curtis<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: John Cole &lt;john.cole@uai.com&gt;<br>To: "users@openlayers.org"
 &lt;users@openlayers.org&gt;<br>Sent: Thursday, December 7, 2006 5:04:13 PM<br>Subject: [OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)...<br><br><div>I've created a sample page using OpenLayers, but have run into a strange<br>issue.&nbsp;&nbsp;When you resize the image greater than about 1000 pixels wide, the<br>mapserver layer doesn't draw anymore.&nbsp;&nbsp;Another layer (WMS) continues to draw<br>ok (in this cae the Nexrad layer from one of the demos).<br><br>Here is what I have:<br><br>var map, layer;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function init(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map = new OpenLayers.Map( $('map') );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", <br> <br>"<a target="_blank"
 href="http://ostest4.uai.int/cgi-bin/mapserv.exe?map=/mapserver/madison/mainutm.m">http://ostest4.uai.int/cgi-bin/mapserv.exe?map=/mapserver/madison/mainutm.m</a><br>ap&amp;", {layers: 'bound,hydro,roads,landmark'} );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.addLayer(layer);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.setCenter(new OpenLayers.LonLat(-86.5, 34.75),<br>11);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br><br>Thanks,<br><br>John Cole<br>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named.
 If you are not the named addressee you should not disseminate, distribute or copy this e-mail.<br>_______________________________________________<br>Users mailing list<br>Users@openlayers.org<br><a target="_blank" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></div></div><br></div></div></body></html>