[OpenLayers-Users] Fixed: OL-2.6 does not seem to be reloading
tiles on error
David R Robison
drrobison at openroadsconsulting.com
Tue Jul 8 08:17:10 EDT 2008
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
>
>
--
David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: drrobison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579
This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately.
More information about the Users
mailing list