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't bring any success neither over
<br><br>var wms2 = new OpenLayers.Layer.MapServer("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>", {mode: 'map', layers: 'Flaeche', mapext: '2574985.815002 5646323.449916 2587295.900005 5655021.169988'});<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'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> <<a href="mailto:woodbri@swoodbridge.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
woodbri@swoodbridge.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;">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>
> Hi!
<br>><br>> I'm new to OpenLayers. I would like to build a simple application with a<br>> 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
<br>> OpenLayers documentation and my application looks like that:<br>><br>> <html><br>> <head><br>> <script src="<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>> <<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>>"></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",<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>> {layers: 'Flaeche'});<br>>
map.addLayer(wms2);<br>> map.zoomToMaxExtent();<br>> </script><br>> </body><br>> </html><br>><br>> The point is that the mapfile I use can be viewed with the MapServer<br>> (that means typing
<br>> <a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&layers=Flaeche&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&layers=Flaeche&mode=map
</a><br>> <<a href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/test/htdocs/test.map&layers=Flaeche&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&layers=Flaeche&mode=map
</a>><br>> into the address field of a browser causes the map to be shown with no<br>> problem), but building it as a layer into an OpenLayers-application<br>> results in an empty page. Could someone assume, what could be wrong? Are
<br>> the shapefiles not compatible with OpenLayers? Am I using a wrong<br>> layer-type?<br>><br>> Thanks in advance!<br>><br>> Dmitri<br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@openlayers.org
</a><br>> <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