<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I would use a vector layer with a http protocol pointing to the GeoRSS file, and then add a Refresh Strategy.<div><br></div><div>Something like this (untested, for a refresh every 60 seconds):</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var layer = new OpenLayers.Layer.Vector("mylayer", {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;strategies: [new OpenLayers.Strategy.Fixed(), new OpenLayers.Strategy.Refresh({interval: 60000})],</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;protocol: new OpenLayers.Protocol.HTTP({</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;url: &nbsp;"<a href="http://myhost/mygeorss">http://myhost/mygeorss</a>",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;format: new OpenLayers.Format.GeoRSS()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});</div></div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>--&nbsp;</div><div>Looking for flexible support on OpenLayers or GeoExt? Please check out <a href="http://www.osgis.nl/support.html">http://www.osgis.nl/support.html</a></div><div><br></div><div>Bart van den Eijnden</div><div>OSGIS</div><div><a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a></div></div></div></span></div>
</div>
<br><div><div>On Aug 10, 2010, at 7:05 PM, Hubick, William wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>
<div id="idOWAReplyText47578" dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">Hi Everyone,</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">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). </font><font face="Arial" size="2">When further exploring, it seems like custom code must be written to auto-update the layer. </font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">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)?&nbsp;It seems like there must be a better way to update the layer&nbsp;than destroying and reloading the GeoRSS layer.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">Any help would be greatly appreciated!</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">Thanks in advance,</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">Bill</font></div>
<div dir="ltr"><font face="Arial" color="#000000" size="2"></font>&nbsp;</div></div>
<div id="idSignature8534" dir="ltr">
<div><font face="Arial" color="#000000" size="2"><strong>Bill Hubick</strong></font></div>
<div><font face="Arial" size="2">Cobham Analytic Solutions</font></div>
<div><font face="Arial" size="2"><a href="mailto:william.hubick@cobham.com" target="_blank">william.hubick@cobham.com</a></font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><b><span style="FONT-SIZE: 8pt; COLOR: rgb(51,153,0); FONT-FAMILY: Verdana, sans-serif">Please consider the environment before printing this email</span></b><span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Verdana, sans-serif">&nbsp;</span></div>
<div><font face="Arial" color="#000000" size="2"></font>&nbsp;</div></div></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>http://openlayers.org/mailman/listinfo/users<br></blockquote></div><br></div></body></html>