<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi!</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I'm new to OpenLayers. I would like to build a simple
application with a single layer to decide how good the OpenLayers are, but have
no luck. <br>For this purpose I use the source code posted on the
first page of the OpenLayers documentation and my application looks like that:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><html><br><head><br><script src="<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js
</a>"></script><br></head><br><body><br> <div style="width:100%;
height:100%" id="map"></div><br> <script defer="defer"
type="text/javascript"><br> var map = new
OpenLayers.Map('map');<br> var wms2 = new
OpenLayers.Layer.WMS("BGL Abschnitte",
"<a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map</a>",
{layers: 'Flaeche'});<br> map.addLayer(wms2);<br> map.zoomToMaxExtent();<br> </script><br></body><br></html> <br></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">The point is that the mapfile I use can be viewed with
the MapServer (that means typing <a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&layers=Flaeche&mode=map">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&layers=Flaeche&mode=map
</a>
into the address field of a browser causes the map to be shown with no
problem), but building it as a layer into an OpenLayers-application results in
an empty page. Could someone assume, what could be wrong? Are the shapefiles
not compatible with OpenLayers? Am I using a wrong layer-type?</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks in advance!</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Dmitri</span></p>