hi Alex,<br><br>You can find an example of a directly displayed GeoRSS layer at <a href="http://www.ekoplan.org/wikimap/demo20">http://www.ekoplan.org/wikimap/demo20</a>. As you can see, I used a php-proxy to get the georss-xml. Most likely that is your problem (the proxy). You can find info on setting up a cgi-proxy at 
<a href="http://openlayers.org">openlayers.org</a>, or you can use the php-proxy I use for wikimap for testing. You can find the sourcecode of wikimap through <a href="http://wikimap.sf.net">http://wikimap.sf.net</a>.<br>
<br>Robert.<br><br><div><span class="gmail_quote">On 2/6/07, <b class="gmail_sendername">Alexandre Leroux</b> &lt;<a href="mailto:alexandre.leroux@ec.gc.ca">alexandre.leroux@ec.gc.ca</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;">
<br>Hi list,<br><br>OpenLayers&#39;s GeoRSS example ask you to feed the url through a textbox. I<br>have failed to find the right syntax to send it directly.<br><br>My last attempt was:<br>OpenLayers.Layer.GeoRSS(&quot;Slashgeo&quot;, &quot;
<a href="http://slashgeo.org/index.rss">http://slashgeo.org/index.rss</a>&quot;);<br>map.addLayer([georss_layer]);<br>but it doesn&#39;t work. What&#39;s wrong? (I have tried multiple permutations,<br>including removing the [] on georss_layer)
<br><br>I tried with the live example on<br><a href="http://openlayers.org/dev/examples/georss.html">http://openlayers.org/dev/examples/georss.html</a> and of course it works.<br>However, for some reason, the georss feed doesn&#39;t show up when testing
<br>the example locally using the georss.html example bundled with the files.<br><br>I copied my full code below just in case. Thanks!<br><br>Alex<br>--<br>Alexandre Leroux, M.Sc., Ing.<br>Environnement Canada / Environment Canada
<br>Centre météorologique canadien / Canadian Meteorological Centre<br>Division de la réponse aux urgences environnementales /<br>Environmental Emergency Response Division<br><a href="mailto:alexandre.leroux@ec.gc.ca">alexandre.leroux@ec.gc.ca
</a><br><br><br><br><br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br>&nbsp;&nbsp; &lt;head&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;style type=&quot;text/css&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #map {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 1000px;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 700px;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border: 1px solid black;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/style&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;script<br>src=&#39;<a href="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ&#39;">
http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ&#39;</a>&gt;&lt;/script&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;script src=&quot;<a href="http://www.openlayers.org/api/OpenLayers.js">
http://www.openlayers.org/api/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map, layer, georss_layer;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp; OpenLayers.ProxyHost
 = &quot;/proxy/?url=&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function init(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map = new OpenLayers.Map(&#39;map&#39;, {maxResolution:&#39;auto&#39;});<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = new OpenLayers.Layer.Google( &quot;Google Satellite&quot; ,
<br>{type: G_NORMAL_MAP, &#39;maxZoomLevel&#39;:18} );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayers([layer]);<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<a href="http://labs.metacarta.com/wms/vmap0">
http://labs.metacarta.com/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.addLayer(layer);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.setCenter(new OpenLayers.LonLat(0, 0), 2);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; georss_layer = new OpenLayers.Layer.GeoRSS
(&quot;Slashgeo&quot;,<br>&quot;<a href="http://slashgeo.org/index.rss">http://slashgeo.org/index.rss</a>&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer([georss_layer]);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addControl(new OpenLayers.Control.LayerSwitcher
());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function addUrl() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var value = $(&#39;url&#39;).value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var parts = value.split(&quot;/&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var newl = new OpenLayers.Layer.GeoRSS(<br>
parts[parts.length-1], value);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer(newl);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(&quot;url&quot;).value = &quot;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp; &lt;/head&gt;<br>&nbsp;&nbsp; &lt;body onload=&quot;init()&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;h1&gt;GeoRSS in OpenLayers&lt;/h1&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;p style=&quot;font-size:.9em;&quot;&gt;This demo uses the OpenLayers GeoRSS<br>parser, which supports GeoRSS Simple and W3C GeoRSS. Only points are<br>currently supported. &lt;a
<br>href=&quot;<a href="http://trac.openlayers.org/wiki/HowToDownload">http://trac.openlayers.org/wiki/HowToDownload</a>&quot;&gt;Get the code!&lt;/a&gt;&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;form onsubmit=&quot;return false;&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;GeoRSS URL: &lt;input type=&quot;text&quot; id=&quot;url&quot; size=&quot;50&quot; /&gt;&lt;input<br>type=&quot;submit&quot; onclick=&quot;addUrl(); return false;&quot; value=&quot;Load Feed&quot;<br>onsubmit=&quot;addUrl(); return false;&quot; /&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;map&quot;&gt;&lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://slashgeo.org/index.rss">http://slashgeo.org/index.rss</a><br>&nbsp;&nbsp; &lt;/body&gt;<br>&lt;/html&gt;<br><br>_______________________________________________
<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>
<br clear="all"><br>-- <br>Robert Buzink, website ontwerp en ontwikkeling<br>Sint-Pietersaalststraat 123<br>9000 Gent<br>+32 (0)9 33 00 267<br>+32 (0)487 548 414<br><a href="mailto:post@robertbuzink.nl">post@robertbuzink.nl
</a><br><a href="http://robertbuzink.nl/webdesign">robertbuzink.nl/webdesign</a>