I would use a vector layer with a http protocol pointing to the GeoRSS file, 
and then add a Refresh Strategy.

Something like this (untested, for a refresh every 60 seconds):

                var layer = new OpenLayers.Layer.Vector("mylayer", {
                    strategies: [new OpenLayers.Strategy.Fixed(), new 
OpenLayers.Strategy.Refresh({interval: 60000})],
                    protocol: new OpenLayers.Protocol.HTTP({
                        url:  "http://myhost/mygeorss";,
                        format: new OpenLayers.Format.GeoRSS()
                });

Best regards,
Bart

-- 
Looking for flexible support on OpenLayers or GeoExt? Please check out 
http://www.osgis.nl/support.html

Bart van den Eijnden
OSGIS
bart...@osgis.nl

On Aug 10, 2010, at 7:05 PM, Hubick, William wrote:

> Hi Everyone,
>  
> My project is considering GeoRSS as our data-sharing standard with partners. 
> I am pleased with how easily OpenLayers will display GeoRSS points, but I'm 
> wondering how other developers ensure efficient auto-updates. My first 
> impression was that OpenLayers would automatically check a GeoRSS XML file 
> and automatically load updates (i.e., like an RSS aggregator). When further 
> exploring, it seems like custom code must be written to auto-update the layer.
>  
> Am I missing something? Is there a way to ensure new points added to a GeoRSS 
> file are automatically, efficiently loaded by OpenLayers (without page 
> refresh)? It seems like there must be a better way to update the layer than 
> destroying and reloading the GeoRSS layer.
>  
> Any help would be greatly appreciated!
>  
> Thanks in advance,
>  
> Bill
>  
> Bill Hubick
> Cobham Analytic Solutions
> william.hub...@cobham.com
>  
> Please consider the environment before printing this email 
>  
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to