<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">&lt;html&gt;<br>&lt;head&gt;<br>&lt;script src=&quot;<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js
</a>&quot;&gt;&lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&nbsp; &lt;div style=&quot;width:100%;
height:100%&quot; id=&quot;map&quot;&gt;&lt;/div&gt;<br>&nbsp; &lt;script defer=&quot;defer&quot;
type=&quot;text/javascript&quot;&gt;<br>&nbsp;&nbsp;&nbsp; var map = new
OpenLayers.Map(&#39;map&#39;);<br>&nbsp;&nbsp;&nbsp; var wms2 = new
OpenLayers.Layer.WMS(&quot;BGL Abschnitte&quot;,
&quot;<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>&quot;,
{layers: &#39;Flaeche&#39;});<br>&nbsp;&nbsp;&nbsp; map.addLayer(wms2);<br>&nbsp;&nbsp;&nbsp; map.zoomToMaxExtent();<br>&nbsp; &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt; <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&amp;layers=Flaeche&amp;mode=map">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&amp;layers=Flaeche&amp;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>