Steve, Um, no. I did see references to it in my searching, but there is supposed to be this whole thing related to strategy.refresh in Openlayers that is supposed to do what I'm looking for. . . .
At least as far as I've read. . . just trying to understand how it works. bobb >>> Stephen Woodbridge <[email protected]> wrote: Bob, have your tried: layer.redraw(); -Steve On 3/26/2012 6:05 PM, Bob Basques wrote: > I have tried this (last). I can't get it to reload anything. I tried a > few different approaches, Help!! NOTE: Map displays fine on load, just > won't refresh automatically at any interval. Thanks : > > > var mslayer6 = new OpenLayers.Layer.MapServer( "<br /><img src=\" > /http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/STREETS/plots_last_public.map?mode=legend/ > <http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/STREETS/plots_last_public.map?mode=legend> > \">", > > " > /http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/STREETS/plots_last_public.map?/ > <http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/STREETS/plots_last_public.map?> > ", > > {layers: '', > > format: "image/png", > > transparent: "true"}, > > > {singleTile: "true", > > transitionEffect: 'resize', > > ratio: 1, > > displayInLayerSwitcher:'false'} > > ); > > > function init() { > > > . . . some other stuff . . . > > > window.setInterval(refreshData, 5000, mslayer6); > > > } // END init > > > function refreshData(layer){ > > //setting loaded to false unloads the layer// > > layer.loaded = true; > > //setting visibility to true forces a reload of the layer// > > layer.setVisibility(true); > > //the refresh will force it to get the new KML data// > > layer.setUrl('http://gis.ci.stpaul.mn.us/datasets/DB/SAINT_PAUL/PUBLIC_WORKS/AVL/STREETS/plots_last_public.map?'); > > > } > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
