[OpenLayers-Users] Fixed: OL-2.6 does not seem to be reloading
tiles on error
Alan Boudreault
aboudreault at mapgears.com
Tue Jul 8 14:08:50 EDT 2008
Hi David,
I had the same problem with IE6. I made a similar fix to this but using
a random number instead of "this._attempts" because sometime we set the
IMAGE_RELOAD_ATTEMPTS to 2 and the client can get 2 consecutive error
messages. But i'm surprised to hear this problem occur with FF3.
Alan
David R Robison wrote:
> The problem was fixed by modifying the onImageLoadError in Util.js. The
> following line
> this.src = this.src;
> was changed to
> this.src = this.src + "?attempt=" + this._attempts;
> doing this forced the browser (FF3) to reload the image from the server
> and not from cache.
>
> David
>
> David R Robison wrote:
>
>> I am using OL-2.6 with OpenLayers.IMAGE_RELOAD_ATTEMPTS = 10. Yet, when
>> the tilecache server returns a 500 code, I am not seeing OL trying to
>> reload the image. I am using firebug and watching the network traffic
>> but I don't see any attempt to reload the failed tile. Am I doing
>> something wrong?
>>
>> TNX David
>>
>>
>>
>
>
--
Alan Boudreault
Mapgears
http://www.mapgears.com
More information about the Users
mailing list