[OpenLayers-Users] Problem with GeoRSS layer
Schuyler Erle
sderle at metacarta.com
Tue Jun 27 18:42:11 CDT 2006
* On 27-Jun-2006 at 6:27PM EDT, Christopher Schmidt said:
>
> > 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);
>
> You want:
>
> OpenLayers.ProxyHost = '';
Alternately, you can say:
var georssLayer = new OpenLayers.Layer.GeoRSS( 'annotations',
'/openlayers/markers.php' );
The HttpRequest code is smart enough to not use the proxy if the URL
you're requesting doesn't start with "http://" or "https://".
SDE
More information about the Users
mailing list