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> <<a href="mailto:eisberg@gmail.com">eisberg@gmail.com</a>> 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> <<a href="mailto:crschmidt@metacarta.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crschmidt@metacarta.com</a>> 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>> Hi Steve,<br>><br>> I assume it is working with the Layer/Mapserver class, only that the site is<br>> still empty. I looked at the address of the map in the the properties window
<br>> - the part of it that as I suspect prevents it from working is the<br>> mapextent, which is set to -180 -90 180 270 (initial maximum extent).<br>> Setting up the extent via OpenLayers didn't bring any success neither over
<br>><br>> var wms2 = new OpenLayers.Layer.MapServer("BGL Abschnitte", "<br>> <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>",<br>> {mode: 'map', layers: 'Flaeche', mapext: '2574985.815002 5646323.449916<br>> 2587295.900005 5655021.169988'});<br><br>Don'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("map", {maxExtent: new<br>OpenLayers.Bounds(2574985.815002, 5646323.449916, 2587295.900005
,
<br>5655021.169988),<br>maxResolution: 'auto', units: 'meters', projection: "EPSG:41001"});<br><br>combined with something like:<br><br>> var bounds = new OpenLayers.Bounds(2574985.815002, 5646323.449916
,<br>> 2587295.900005, 5655021.169988);<br>> map.zoomToExtent(bounds);<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br></span></div></blockquote></div>