It has worked! Thank you!<br><br>BR,<br>Dmitri<br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername">Dmitri Mizerkin</b> &lt;<a href="mailto:eisberg@gmail.com">eisberg@gmail.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;">Hi Christopher,<br><br>just received your previous mail and find the topic you mentioned. Thanks for a rapid feedback.
<br><br>BR,<br>Dmitri<div><span class="e" id="q_111bd2dfa3af95c9_1"><br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername">Christopher Schmidt
</b> &lt;<a href="mailto:crschmidt@metacarta.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crschmidt@metacarta.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;">

On Wed, Apr 04, 2007 at 05:12:44PM +0200, Dmitri Mizerkin wrote:<br>&gt; Hi Steve,<br>&gt;<br>&gt; I assume it is working with the Layer/Mapserver class, only that the site is<br>&gt; still empty. I looked at the address of the map in the the properties window
<br>&gt; - the part of it that as I suspect prevents it from working is the<br>&gt; mapextent, which is set to -180 -90 180 270 (initial maximum extent).<br>&gt; Setting up the extent via OpenLayers didn&#39;t bring any success neither over
<br>&gt;<br>&gt; var wms2 = new OpenLayers.Layer.MapServer(&quot;BGL Abschnitte&quot;, &quot;<br>&gt; <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; {mode: &#39;map&#39;, layers: &#39;Flaeche&#39;, mapext: &#39;2574985.815002 5646323.449916<br>&gt; 2587295.900005 5655021.169988&#39;});<br><br>Don&#39;t do this.<br><br><br>Read this:<br><br><a href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections</a><br><br>then do this:<br><br>new OpenLayers.Map(&quot;map&quot;, {maxExtent: new<br>OpenLayers.Bounds(2574985.815002, 5646323.449916, 2587295.900005
,
<br>5655021.169988),<br>maxResolution: &#39;auto&#39;, units: &#39;meters&#39;, projection: &quot;EPSG:41001&quot;});<br><br>combined with something like:<br><br>&gt; var bounds = new OpenLayers.Bounds(2574985.815002, 5646323.449916

,<br>&gt; 2587295.900005, 5655021.169988);<br>&gt; map.zoomToExtent(bounds);<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br></span></div></blockquote></div>