[OpenLayers-Dev] refreshing layers in open layers

Volker Mische volker.mische at gmail.com
Mon Apr 2 10:52:48 EDT 2012


On 03/31/2012 06:03 PM, ragunaat wrote:
> hi guys!!!!. . . . .Im doing a project in openlayers and im facing a problem
> in refreshing layers. . . .i have two layers in my program . . . .First one
> is to read a gpx file and it has to keep refreshing for every some time!!!.
> . . . .And second layers is having a mapfile to display images. . . . so i
> have to refresh the mapfile also when a gpx file get updated.
> 
> So here my problem is:
> 1)need to refresh the gpx layer for every sometime
> 2)and while refreshing the layers i have to change a external file by means
> of some functions
> 
> 
> 
> Any kind of coding example pleaseee!!!! 
> 
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/refreshing-layers-in-open-layers-tp4674445p4674445.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Hi,

have a look at the refresh strategy [1].

BTW, for questions about how to use OpenLayers, the chance of getting an
answer is way higher on the users mailing list, as opposed to the dev list.

[1]
http://dev.openlayers.org/apidocs/files/OpenLayers/Strategy/Refresh-js.html

Cheers,
  Volker


More information about the Dev mailing list