On 7/8/07, Gregor Mosheh <[EMAIL PROTECTED]> wrote: > Christopher Schmidt wrote: > > OpenLayers only sets the 'src' attribute of an image tag -- nothing > > more. When images don't load, they don't load because the browser > > decided not to load them -- I have no idea why this happens. The > > IMAGE_RELOAD_ATTEMPTS is the only way I know of to fix this, and I have > > no idea why this wouldn't work. > > Yeah; even Google Maps does this now and then. No sweat, but I do have > some other applications for such functionality. > > Does there exist a method that orders OpenLayers to refresh the current > map view, re-download all tiles for the current viewport, or for a > specific layer?
If you are using trunk, there is now a function "redraw()" on Layer that should work to redraw layers, but there is not a map.redraw(). What you would do is call map.setCenter() and passing "true" for the "zoomChanged" flag. If people think a map.redraw() function would be helpful, please let me know and I can add that. e > > A real-world use comes to mind when using dynamic data, e.g. having > added a new point to a database via some PHP script, I'd like to redraw > the WMS layer without my reloading the entire page and losing my place. > I don't see documentation of a .redraw() method, for example, on the > Layer or Map objects, so I take it the answer is No here? > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
