[OpenLayers-Users] help: reload georss layer

Eric Lemoine eric.c2c at gmail.com
Sat Apr 12 08:59:14 EDT 2008


On Sat, Apr 12, 2008 at 2:33 PM, Arnd Wippermann <arnd.wippermann at web.de> wrote:
> Hi,
>
>  It seems it is not possible with 2.5. But if you use 2.6 look here:
>
>  http://dev.openlayers.org/docs/files/OpenLayers/Layer/GeoRSS-js.html
>
>  Perhaps with loadRSS it's possible.

loadRSS() does northing if the RSS doc was already loaded. You can probably do:

layer.loaded = false;
layer.loadRSS();

to force reload.

Note that this operation relies on properties that aren't part of the
API. These properties can therefore be removed or renamed in future
versions of OpenLayers.

If you want your app to rely on API properties only, you can probably
create a new GeoRSS layer each time you need reloading the GeoRSS
document. If you think this isn't appropriate and a reload() API
method is required, come up with good case for introducing this API
method and it will be considered for inclusion into OpenLayers.

Cheers,

--
Eric



More information about the Users mailing list