[OpenLayers-Users] KML NetworkLink and auto-refresh
ChiefDan
ChiefDan at gmail.com
Tue May 12 13:35:03 EDT 2009
Andrew,
Not sure if you found a solution, if not, this is what I've done.
In the map init function, set a timer:
window.setInterval(raingaugeRefreshData, 600000, rainGauges);
Then in the timer service function:
function raingaugeRefreshData(layer)
{
layer.loaded = false;
layer.setVisibility(true);
}
By setting loaded to false then calling setVisibility(), openlayers goes and
grabs the kml file again.
Hope this helps.
Dan
--
View this message in context: http://n2.nabble.com/KML-NetworkLink-and-auto-refresh-tp2531433p2870627.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list