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> <<a href="mailto:alexandre.leroux@ec.gc.ca">alexandre.leroux@ec.gc.ca</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;">
<br>Hi list,<br><br>OpenLayers'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("Slashgeo", "
<a href="http://slashgeo.org/index.rss">http://slashgeo.org/index.rss</a>");<br>map.addLayer([georss_layer]);<br>but it doesn't work. What'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'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><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"><br> <head><br> <style type="text/css"><br> #map {<br> width: 1000px;
<br> height: 700px;<br> border: 1px solid black;<br> }<br> </style><br> <script<br>src='<a href="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'">
http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'</a>></script><br> <script src="<a href="http://www.openlayers.org/api/OpenLayers.js">
http://www.openlayers.org/api/OpenLayers.js</a>"></script><br> <script type="text/javascript"><br> <!--<br> var map, layer, georss_layer;<br><br> // OpenLayers.ProxyHost
= "/proxy/?url=";<br> function init(){<br> map = new OpenLayers.Map('map', {maxResolution:'auto'});<br> layer = new OpenLayers.Layer.Google( "Google Satellite" ,
<br>{type: G_NORMAL_MAP, 'maxZoomLevel':18} );<br> map.addLayers([layer]);<br>// layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",<br>// "<a href="http://labs.metacarta.com/wms/vmap0">
http://labs.metacarta.com/wms/vmap0</a>", {layers: 'basic'} );<br>// map.addLayer(layer);<br> map.setCenter(new OpenLayers.LonLat(0, 0), 2);<br> georss_layer = new OpenLayers.Layer.GeoRSS
("Slashgeo",<br>"<a href="http://slashgeo.org/index.rss">http://slashgeo.org/index.rss</a>");<br> map.addLayer([georss_layer]);<br> map.addControl(new OpenLayers.Control.LayerSwitcher
());<br> }<br> function addUrl() {<br> var value = $('url').value;<br> var parts = value.split("/");<br> var newl = new OpenLayers.Layer.GeoRSS(<br>
parts[parts.length-1], value);<br> map.addLayer(newl);<br> $("url").value = "";<br> }<br> // --><br> </script><br> </head><br> <body onload="init()">
<br> <h1>GeoRSS in OpenLayers</h1><br> <p style="font-size:.9em;">This demo uses the OpenLayers GeoRSS<br>parser, which supports GeoRSS Simple and W3C GeoRSS. Only points are<br>currently supported. <a
<br>href="<a href="http://trac.openlayers.org/wiki/HowToDownload">http://trac.openlayers.org/wiki/HowToDownload</a>">Get the code!</a></p><br> <form onsubmit="return false;"><br>
GeoRSS URL: <input type="text" id="url" size="50" /><input<br>type="submit" onclick="addUrl(); return false;" value="Load Feed"<br>onsubmit="addUrl(); return false;" />
<br> </form><br> <div id="map"></div><br> <a href="http://slashgeo.org/index.rss">http://slashgeo.org/index.rss</a><br> </body><br></html><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>