[OpenLayers-Users] Syntax for the GeoRSS call?
Alexandre Leroux
alexandre.leroux at ec.gc.ca
Wed Feb 7 09:01:20 EST 2007
Thanks to Robert and Christopher, the proxy was simply the problem.
Great that it works so easily. Here's my preliminary success:
http://slashgeo.org/georss.html . Preliminary because some work is
required to integrate it more tightly with slashcode. Once done, I'll
share the OpenLayers solution for GeoRSS with other slash-based site owners.
Thanks again :-)
Alex
Christopher Schmidt wrote:
> On Tue, Feb 06, 2007 at 07:44:08PM +0000, Alexandre Leroux wrote:
>> Hi list,
>>
>> OpenLayers's GeoRSS example ask you to feed the url through a textbox. I
>> have failed to find the right syntax to send it directly.
>>
>> My last attempt was:
>> OpenLayers.Layer.GeoRSS("Slashgeo", "http://slashgeo.org/index.rss");
>> map.addLayer([georss_layer]);
>> but it doesn't work. What's wrong? (I have tried multiple permutations,
>> including removing the [] on georss_layer)
>
> Removing the [] is the right thing to do:
>
>
> OpenLayers.Layer.GeoRSS("Slashgeo", "http://slashgeo.org/index.rss");
> map.addLayer(georss_layer);
>
> However, it looks like you've removed your ProxyHost line. Without this,
> it's not possible to load data from a remote host:
>
> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost
>
> If you read that FAQ, and are still having problems, please respond and
> we can investigate the issue further.
>
> Regards,
--
Alexandre Leroux, M.Sc., Ing.
Environnement Canada / Environment Canada
Centre météorologique canadien / Canadian Meteorological Centre
Division de la réponse aux urgences environnementales /
Environmental Emergency Response Division
alexandre.leroux at ec.gc.ca
More information about the Users
mailing list