I am attempting to use OpenLayers with mapserver. I have been able to bring up the OL zoom and directional buttons, but my maps are not appearing. Somethings is incorrect in how I am trying to access mapserver and the mapfile. However, I am not getting any server errors. The same mapfile works outside of OpenLayers. When I configured mapserver, I specified --with-wmsclient. Is there something else I have to do to setup mapserver or the mapfile, so It can be access through OpenLayers? Below is my html file:<br><br><html xmlns="http://www.w3.org/1999/xhtml"><br> <head><br> <style type="text/css"><br> v\:* {<br> behavior:url(#default#VML);<br> }<br> </style><br> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><br> <script src="lib/OpenLayers.js"></script><br>
</head><br> <body><br> <div id="map" style="width: 400px; height: 400px"></div><br> <script defer="defer" type="text/javascript"><br> var map = new OpenLayers.Map( 'map', {'projection':'EPSG:4326', 'units':'DD',<br> 'maxExtent': new OpenLayers.Bounds(-68.50, 44.117, -68.00, 44.615),<br> 'maxResolution': 146095 } );<br> var wmsurl = "http://www.aratasystems.com/cgi-bin/mapserv?map=\\mapdata\\MDI.map&"<br> var wmsmdi = new OpenLayers.Layer.WMS( "MDI", wmsurl,
<br> {layers: "DEM30,ponds,streams,roads", transparent:"true",format: "image/png"},<br> {tileSize: new OpenLayers.Size(400, 400), buffer: 1 },<br> {'isBaseLayer':true} );<br> map.addLayer(wmsmdi);<br><br> var MDI = new OpenLayers.LonLat(-68.5, 44.63);<br> map.setCenter(MDI, 3);<br> map.addControl(new OpenLayers.Control.LayerSwitcher());<br> </script><br> </body><br></html><br><br>