[OpenLayers-Dev] Openlayers and auto-refresh (GPS project)

Dan Little danlittle at yahoo.com
Thu Jan 8 14:34:04 EST 2009


You'd need to do it with an external Javscript procedure.

function refreshMyLayer() {
   MyLayer.params['TS'] = (new Date()).time();
   MyLayer.redraw();
}

setTimeout(refreshMyLayer, 500);



----- Original Message ----
> From: Bob Basques <Bob.Basques at ci.stpaul.mn.us>
> To: dev at openlayers.org
> Sent: Thursday, January 8, 2009 1:27:31 PM
> Subject: [OpenLayers-Dev] Openlayers and auto-refresh (GPS project)
> 
> All,
> 
> After a quick search, didn't find anything directly about the topic for OL.
> 
> Anyone have pointers to an example of Tracking (centering a Map) automatically 
> with OL?  I have a (or will have) a service to provide the map panning/zooming 
> controls, but how to set up a caller from OL?
> 
> Just learning the basics with OL here, figured this was a good little project to 
> build OL expertise from.
> 
> Thanks
> 
> bobb
> 
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev



      



More information about the Dev mailing list