[OpenLayers-Users] Reloading broken tiles?
Christopher Schmidt
crschmidt at metacarta.com
Sun Jul 8 12:00:59 EDT 2007
On Sun, Jul 08, 2007 at 11:53:11AM +0200, Andrea Aime wrote:
> Gregor Mosheh ha scritto:
> > A question that's come up a time or two here, is how one can reload
> > broken tiles without reloading the entire map and losing your view,
> > layer selection, etc.
> >
> > I have "OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3" but still, it happens
> > sometimes. Is this param still used, and is increasing it my only
> > resort? Or does there exist a method for refreshing the current map view
> > and reloading all of the tiles -- does map.redraw() do this?
> >
>
> I'm also curious about this. I have the impression sometimes OpenLayers
> is giving up on a tile too soon, is there any way to make it wait more?
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.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list