<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Steven,<br><br>perhaps this:<br><a rel="nofollow" target="_blank" href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost">http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost</a><br>could help you a little bit. <br>At examples page of OL you can find a proxy.cgi scipt for reference.<br><br>best regards<br>Sarah<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> Steven Venter &lt;scventer43@telkomsa.net&gt;<br><b><span style="font-weight: bold;">An:</span></b> Frank Broniewski &lt;brfr@metrico.lu&gt;; users@openlayers.org<br><b><span style="font-weight:
 bold;">Gesendet:</span></b> Montag, den 26. April 2010, 13:20:42 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> Re: [OpenLayers-Users] Basic GeoServer OpenLayers map<br></font><br>Hi Frank<br><br>Still no luck.<br><br>After clearing the browser cache firebug indicates that the file is loaded<br>but no image is generated on the map. The content of the file is correctly<br>displayed in firebug.<br><br>My code is based on the openlayers-2.8/examples/markersTextLayer.html.<br><br>My text file looks like this:<br>point title description image<br>-77.39929,39.40225 title somemarker icons/accident.png<br><br>I have tried icon as a column header but that did not help. Also i specified<br>the complete url for the image path but again that did not help.<br><br>If I use the OpenLayers.Layer.Vector() function I get the symbol and text<br>displayed. I feel that the OpenLayers.Layer.Text() function if more flexible<br>and would like to get it
 working.<br><br>I noticed that the examples have this line of code<br>OpenLayers.ProxyHost="/proxy/?url="; but can’t find a reference of it in the<br>API docs. Can some one please explain it?<br><br>Steven<br><br>-----Original Message-----<br>From: Frank Broniewski [mailto:<a ymailto="mailto:brfr@metrico.lu" href="mailto:brfr@metrico.lu">brfr@metrico.lu</a>] <br>Sent: 26 April 2010 09:26 AM<br>To: Steven Venter; <a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a><br>Subject: Re: [OpenLayers-Users] Basic GeoServer OpenLayers map<br><br>Hello Steven,<br><br>if the text layer is at the same level as the HTML page try {location: <br>"txtfile.txt"} . I don't think your relative path gets well translated<br><br>Frank<br><br><br>Am 26.04.2010 09:00, schrieb Steven Venter:<br>&gt; Hi Frank<br>&gt;<br>&gt; Thanks for your help. (this message was also sent to the mailing list -<br>&gt; sorry about
 that.)<br>&gt;<br>&gt; I managed to solve the problem over the weekend. I used addLayers with a<br>&gt; single layer supplied. I changed this to addLayer and my map displayed. I<br>&gt; also added options to the map (maxResolution, maxExtent and projection).<br>&gt;<br>&gt; Lesson, don't follow tutorials blindly.<br>&gt;<br>&gt; But I still have a problem displaying a text layer.<br>&gt;<br>&gt; var txtLayer = new OpenLayers.Layer.Text("text", {location:<br>&gt; "./txtfile.txt"});<br>&gt; map.addLayer(txtLayer);<br>&gt;<br>&gt; When I view the Net tab in firebug FF is just sitting there trying to load<br>&gt; the file.<br>&gt; firebug net output: GET <a href="http://localhost/test/txtfile.txt" target="_blank">http://localhost/test/txtfile.txt</a><br>&gt;<br>&gt; My txtfile.txt is tab separated.<br>&gt;<br>&gt; Any suggestions?<br>&gt;<br>&gt; Steven<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: Frank Broniewski [mailto:<a
 ymailto="mailto:brfr@metrico.lu" href="mailto:brfr@metrico.lu">brfr@metrico.lu</a>]<br>&gt; Sent: 26 April 2010 08:37 AM<br>&gt; To: Steven Venter; <a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a><br>&gt; Subject: Re: [OpenLayers-Users] Basic GeoServer OpenLayers map<br>&gt;<br>&gt; Please reply also to the OpenLayers list!<br>&gt;<br>&gt; If the WMS request works in your browser there should'nt be a problem<br>&gt; with the geoserver setup. I suspect the problem in your OL<br>&gt; configuration. Usually I define a maxetent and a resolutions/or scale<br>&gt; array for the map and then do a setCenter() at the end of the config ...<br>&gt;<br>&gt; Please show us a minimal example. Without that it is impossible for us<br>&gt; to locate your problem.<br>&gt;<br>&gt; Frank<br>&gt;<br>&gt; Am 24.04.2010 08:38, schrieb Steven Venter:<br>&gt;&gt; Hi Frank<br>&gt;&gt;<br>&gt;&gt; If I
 put<br>&gt;&gt;<br>&gt;<br><a href="http://localhost:8080/geoserver/wms?service=WMS&amp;version=1.1.0&amp;request=GetMap" target="_blank">http://localhost:8080/geoserver/wms?service=WMS&amp;version=1.1.0&amp;request=GetMap</a><br>&gt;&gt;<br>&gt;<br>&amp;layers=topp:states$styles=&amp;bbox=-124.7314220000001,24.955967,-66.969849,49.<br>&gt;&gt; 371735&amp;width=708&amp;height=330&amp;srs=EPSG:4326&amp;format=image/png in to my<br>&gt; browsers<br>&gt;&gt; adders bar I get a png generate image of most of the USA states.<br>&gt;&gt;<br>&gt;&gt; I also debugged my script to see what the request to the server looks<br>&gt; like.<br>&gt;&gt; As far as I can tell it all seems right.<br>&gt;&gt;<br>&gt;&gt; Under the DEFAULT_PARAMS variable I have this:<br>&gt;&gt; Exceptions "application/vnd.ogc.se_inimage<br>&gt;&gt; Format "image/jpeg"<br>&gt;&gt; Request "GetMap"<br>&gt;&gt; Service "WMS"<br>&gt;&gt; Style " "<br>&gt;&gt; Version
 "1.1.1"<br>&gt;&gt;<br>&gt;&gt; Under the params section I get the same but for the following:<br>&gt;&gt; FORMAT "image/png" -- as i requested<br>&gt;&gt; LAYERS "[topp:states]"<br>&gt;&gt;<br>&gt;&gt; The url variable contain this:<br>&gt;&gt; <a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a><br>&gt;&gt;<br>&gt;&gt; But I still can’t get the image displayed. I get the navigation items the<br>&gt;&gt; css border displayed, and in firebug the bounds is null error.<br>&gt;&gt;<br>&gt;&gt; The layers that I use are standard geogerver layers that are<br>&gt; pre-installed.<br>&gt;&gt; I’m using these until I can get the basics right.<br>&gt;&gt;<br>&gt;&gt; 1. Do you have to specify the bounds? From the OL examples it doesn’t<br>seem<br>&gt;&gt; so.<br>&gt;&gt; 2. Could this be a server problem?<br>&gt;&gt; 3. What else could I check?<br>&gt;&gt; 4. Any other suggestions.<br>&gt;&gt;<br>&gt;&gt;
 Thanks for you help.<br>&gt;&gt; Steven<br>&gt;&gt;<br>&gt;&gt; -----Original Message-----<br>&gt;&gt; From: Frank Broniewski [mailto:<a ymailto="mailto:brfr@metrico.lu" href="mailto:brfr@metrico.lu">brfr@metrico.lu</a>]<br>&gt;&gt; Sent: 23 April 2010 02:37 PM<br>&gt;&gt; To: Steven Venter; <a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a><br>&gt;&gt; Subject: Re: [OpenLayers-Users] Basic GeoServer OpenLayers map<br>&gt;&gt;<br>&gt;&gt; Hello Steven,<br>&gt;&gt;<br>&gt;&gt; unfortunately I have no experience with geoserver, but request URLs from<br>&gt;&gt; Openlayers WMS are conform to the OGC standards and if geoserver is also<br>&gt;&gt; conform there should'nt be a problem. A OL generated request from my<br>&gt;&gt; application:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br><a href="http://www.gis-hosting.lu/ogc/service/osm?LAYERS=label&amp;STYLES=,,,&amp;FORMAT=ima"
 target="_blank">http://www.gis-hosting.lu/ogc/service/osm?LAYERS=label&amp;STYLES=,,,&amp;FORMAT=ima</a><br>&gt;&gt;<br>&gt;<br>ge%2Fpng&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;EXCEPTIONS=application%2Fv<br>&gt;&gt;<br>&gt;<br>nd.ogc.se_inimage&amp;SRS=EPSG%3A2169&amp;BBOX=67416.666666,70311.458332975,88583.33<br>&gt;&gt; 3334,81688.541667025&amp;WIDTH=1200&amp;HEIGHT=645<br>&gt;&gt;<br>&gt;&gt; It is in the Net tab from firebug. Something like GET osm?LAYERS= ...<br>&gt;&gt;<br>&gt;&gt; If you suspect the problem with geoserver you could try the WMS requests<br>&gt;&gt; in your browser so you can be sure that they are working. If you think<br>&gt;&gt; its a OL configuration problem please show your layer config code so<br>&gt;&gt; that we can search there ...<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; A OL WMS Layer example:<br>&gt;&gt;<br>&gt;&gt; new OpenLayers.Layer.WMS(<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; 'WMS',<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '<a href="http://www.gis-hosting.lu/ogc/service/osm%27" target="_blank">http://www.gis-hosting.lu/ogc/service/osm'</a>,<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layers: ['base','traffic','place-label'],<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; styles: ['','','',''], format: 'image/png'<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isBaseLayer: true,<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; singleTile:
 true<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br>&gt;&gt;<br>&gt;&gt; Frank<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Am 23.04.2010 14:11, schrieb Steven Venter:<br>&gt;&gt;&gt; Hi Frank<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks for replying.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I used firebug to look at the requests being sent to the server. The css<br>&gt;&gt;&gt; stuff and the navigation items are requested but no request to fetch the<br>&gt;&gt;&gt; image from the server.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I used geoserver functionality to display the image in a page. I then<br>cut<br>&gt;&gt;&gt; and pasted that in to the code. I read on a tutorial site<br>&gt;&gt;&gt; (<a href="http://vasir.net/blog/openlayers/openlayers-tutorial-part2-layers/" target="_blank">http://vasir.net/blog/openlayers/openlayers-tutorial-part2-layers/</a>)<br>that<br>&gt;&gt;&gt;
 some of the info for the request will be generated by openlayer, this<br>&gt; site<br>&gt;&gt;&gt; deals with MapServer so I tried to adapt that to geoserver.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I will try what you suggested, but I’m not sure which parts of the<br>&gt; request<br>&gt;&gt;&gt; are auto generated.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Steven<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; -----Original Message-----<br>&gt;&gt;&gt; From: Frank Broniewski [mailto:<a ymailto="mailto:brfr@metrico.lu" href="mailto:brfr@metrico.lu">brfr@metrico.lu</a>]<br>&gt;&gt;&gt; Sent: 23 April 2010 08:17 AM<br>&gt;&gt;&gt; To: ZAMap<br>&gt;&gt;&gt; Subject: Re: [OpenLayers-Users] Basic GeoServer OpenLayers map<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; did you already try to put the requested URL from the OpenLayers request<br>&gt;&gt;&gt; in the address field of your browser and examine the response? I use<br>&gt;&gt;&gt; Firebug for that and this
 already helps me alot for debugging WMS<br>&gt;&gt; requests.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Frank<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Am 22.04.2010 20:03, schrieb ZAMap:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hi all<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I'm trying to get a basic map displayed but keep getting bounds is null<br>&gt;&gt;&gt;&gt; error.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; None of the suggestions (allOverlays: true) that I found works, most<br>&gt;&gt;&gt;&gt; probably because of other issues with my code/setup.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Code:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; function init() {<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;  var map = new OpenLayers.Map('map');<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;  var layers = new OpenLayers.Layers.WMS(<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  "basic",<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  "<a
 href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>",<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;  {layers: 'topp:states'}<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;  map.addLayers(layers);<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;  map.zoomToMaxExtent();<br>&gt;&gt;&gt;&gt; }<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; My geoserver is working, I can request the map and other data from the<br>&gt;&gt;&gt;&gt; server. Any pointers to good tutorials are welcome.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Setup:<br>&gt;&gt;&gt;&gt; Ubuntu 9.10<br>&gt;&gt;&gt;&gt; GeoServer 2.0.1<br>&gt;&gt;&gt;&gt; Openlayers 2.8<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I would appreciate any help.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br><br><br>-- <br>Frank BRONIEWSKI<br><br>METRICO s.à r.l.<br>géomètres<br>technologies d'information géographique<br>rue des Romains 36<br>L-5433
 NIEDERDONVEN<br><br>tél.: +352 26 74 94 - 28<br>fax.: +352 26 74 94 99<br><a href="http://www.metrico.lu" target="_blank">http://www.metrico.lu</a><br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@openlayers.org" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br></div></div>
</div><br></body></html>