[OpenLayers-Users] Reloading broken tiles?
Gregor Mosheh
gregor at hostgis.com
Sun Jul 8 12:54:11 EDT 2007
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?
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
More information about the Users
mailing list