[OpenLayers-Users] Problem with GeoRSS layer

nick@hogweed.org nick at hogweed.org
Thu Jun 29 18:07:51 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. :)

I tried OpenLayers.ProxyHost, it got rid of the alert box but I don't get my 
markers showing up, even though I seem to have used the version of GeoRSS 
which the GeoRSS layer reads and interprets.

Looking at the JS code I should get the default marker appearing where my 
annotations are. Anything I'm doing wrong?

Thanks,
Nick


More information about the Users mailing list