from quickly looking at the patches from the trac ticket and the source code
you just need to pass in the interval option to the strategy like {interval: 5000} for 5s ? z On 11 August 2010 17:39, geekjack <geekj...@163.com> wrote: > > As the title said,I want one of the layers refreshed every N seconds,I have > find some useful articles like that: > http://dev.openlayers.org/apidocs/files/OpenLayers/Strategy/Refresh-js.html > and http://trac.openlayers.org/ticket/2317. But i just cannot understand > it well .Could someone post some examples and some comments in the code > would be better i think. thank you !! > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/How-to-refresh-a-layer-every-N-seconds-tp5411253p5411253.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users