[OpenLayers-Users] Problems with svn head
Christopher Schmidt
crschmidt at metacarta.com
Thu Apr 19 21:13:57 EDT 2007
On Thu, Apr 19, 2007 at 07:12:59PM -0400, Stephen Woodbridge wrote:
> Christopher,
>
> Great job! Updated svn and made the change you suggested and it works
> great. Thanks. I also think this fixed the memory leak I was seeing.
> Memory still grows with navigation but if I kill the browser window and
> wait for a little bit the memory will drop back down to a reasonable level.
>
> I have a new problem :( to report. While I am navigating about zooming,
> panning, etc. I get random pink tiles. I have been able to determine
> that these are caused by what appears to be a truncated image. If I use
> FF Tools -> Page Info -> Media and scroll through the images, some of
> the tiles have not loaded fully. I can copy the url to another window
> and do a Shift-Reload on the tile and new good copy is put in the cache.
> Then zoom out - Zoom in will reload the tiles and it will look good.
> This is easy to reproduce.
I've seen this a couple times: it seems that loading lots of images
quickly makes the browser (I'm assuming you're using Firefox) kinda
choke.
However, there's a fix:
"By default, OL would only try once. If a user wanted to try multiple
image requests before going pink, they would set
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3 (or something similar)."
-- http://trac.openlayers.org/ticket/447
So, before setCenter, do:
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
And the pink tiles will try to reload.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list