[OpenLayers-Users] map doesn't draw when width expands beyond 1000px (aprox)...

John Cole john.cole at uai.com
Thu Dec 7 18:04:13 EST 2006


I've created a sample page using OpenLayers, but have run into a strange
issue.  When you resize the image greater than about 1000 pixels wide, the
mapserver layer doesn't draw anymore.  Another layer (WMS) continues to draw
ok (in this cae the Nexrad layer from one of the demos).

Here is what I have:

var map, layer;

        function init(){
            map = new OpenLayers.Map( $('map') );
            layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", 
 
"http://ostest4.uai.int/cgi-bin/mapserv.exe?map=/mapserver/madison/mainutm.m
ap&", {layers: 'bound,hydro,roads,landmark'} );
            map.addLayer(layer);

			map.setCenter(new OpenLayers.LonLat(-86.5, 34.75),
11);

            map.addControl( new OpenLayers.Control.LayerSwitcher() );
        }

Thanks,

John Cole
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.



More information about the Users mailing list