Hi Steve,<br><br>I assume it is working with the Layer/Mapserver class, only that the site is still empty. I looked at the address of the map in the the properties window - the part of it that as I suspect prevents it from working is the mapextent, which is set to -180 -90 180 270 (initial maximum extent). Setting up the extent via OpenLayers didn&#39;t bring any success neither over
<br><br>var wms2 = new OpenLayers.Layer.MapServer(&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;,&nbsp; {mode: &#39;map&#39;, layers: &#39;Flaeche&#39;, mapext: &#39;2574985.815002 5646323.449916 2587295.900005 5655021.169988&#39;});<br><br>nor over<br><br>var bounds = new OpenLayers.Bounds(2574985.815002, 5646323.449916
, 2587295.900005, 5655021.169988);<br>map.zoomToExtent(bounds);<br><br>Could there be still something I&#39;m doing wrong?<br><br>Cheers,<br>Dmitri<br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername">
Stephen Woodbridge</b> &lt;<a href="mailto:woodbri@swoodbridge.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
woodbri@swoodbridge.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dmitri,<br><br>Is your mapfile set up to serve WMS layers?
<br>If NOT, then you probably want to use Layer.Mapserver or<br>Layer.Mapserver.Untiled instead of Layer.WMS<br><br>The Untiled, option will require you to use OL 2.4-RC1<br><br>-Steve W<br><br>Dmitri Mizerkin wrote:<br>
&gt; Hi!
<br>&gt;<br>&gt; I&#39;m new to OpenLayers. I would like to build a simple application with a<br>&gt; single layer to decide how good the OpenLayers are, but have no luck.<br>&gt; For this purpose I use the source code posted on the first page of the
<br>&gt; OpenLayers documentation and my application looks like that:<br>&gt;<br>&gt; &lt;html&gt;<br>&gt; &lt;head&gt;<br>&gt; &lt;script src=&quot;<a href="http://www.openlayers.org/api/OpenLayers.js" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.openlayers.org/api/OpenLayers.js
</a><br>&gt; &lt;<a href="http://www.openlayers.org/api/OpenLayers.js" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.openlayers.org/api/OpenLayers.js</a>&gt;&quot;&gt;&lt;/script&gt;<br>
&gt; &lt;/head&gt;<br>&gt; &lt;body&gt;<br>&gt;&nbsp;&nbsp; &lt;div style=&quot;width:100%; height:100%&quot; id=&quot;map&quot;&gt;&lt;/div&gt;
<br>&gt;&nbsp;&nbsp; &lt;script defer=&quot;defer&quot; type=&quot;text/javascript&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; var map = new OpenLayers.Map(&#39;map&#39;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; var wms2 = new OpenLayers.Layer.WMS(&quot;BGL Abschnitte&quot;,<br>&gt; &quot;
<a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map
</a>&quot;,<br>&gt; {layers: &#39;Flaeche&#39;});<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addLayer(wms2);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; map.zoomToMaxExtent();<br>&gt;&nbsp;&nbsp; &lt;/script&gt;<br>&gt; &lt;/body&gt;<br>&gt; &lt;/html&gt;<br>&gt;<br>&gt; The point is that the mapfile I use can be viewed with the MapServer<br>&gt; (that means typing
<br>&gt; <a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&amp;layers=Flaeche&amp;mode=map" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&amp;layers=Flaeche&amp;mode=map
</a><br>&gt; &lt;<a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&amp;layers=Flaeche&amp;mode=map" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&amp;layers=Flaeche&amp;mode=map
</a>&gt;<br>&gt; into the address field of a browser causes the map to be shown with no<br>&gt; problem), but building it as a layer into an OpenLayers-application<br>&gt; results in an empty page. Could someone assume, what could be wrong? Are
<br>&gt; the shapefiles not compatible with OpenLayers? Am I using a wrong<br>&gt; layer-type?<br>&gt;<br>&gt; Thanks in advance!<br>&gt;<br>&gt; Dmitri<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@openlayers.org
</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openlayers.org/mailman/listinfo/users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Gruß,<br>Dmitri