[OpenLayers-Users] Problem with GeoRSS layer

Christopher Schmidt crschmidt at crschmidt.net
Tue Jun 27 17:26:49 CDT 2006


On Tue, Jun 27, 2006 at 11:21:12PM +0100, nick at hogweed.org wrote:
> Regarding my OpenStreetMap/OpenLayers test, now that a GeoRSS layer is 
> available I have tried making my annotations available as (what I believe is) 
> GeoRSS, e.g.
> 
> http://nick.dev.openstreetmap.org/openlayers/markers.php?bbox=-1,51,0,52
> 
> However when I try and create a GeoRSS layer:
> 
>     var georssLayer = new OpenLayers.Layer.GeoRSS('annotations',
>             'http://nick.dev.openstreetmap.org/openlayers/markers.php');
>     map.addLayer(georssLayer);
> Any ideas here? The full source is available at 
> http://nick.dev.openstreetmap.org/openlayers/main.js.

You want:

 OpenLayers.ProxyHost = '';

Right now, OpenLayers.ProxyHost is (extremely!) underdocumented, but is
essentially a default way to set up a local proxy, similar to the on in
examples/proxy.cgi, to allow you to load off-site data.

It's set to /proxy/?url= currently -- the reason for this is that at
OpenLayers.org, we have a Proxy running there, and we wanted the
/dev/examples URLs to work as you would expect them to.

I've opened ticket 112 to change this in Subversion, but we'll need to
change the examples to work as well. For the time being,
OpenLayers.ProxyHost = ''; before you add the layer will allow things to
work as you expect. I hope. :)

-- 
Christopher Schmidt
Web Developer


More information about the Users mailing list