OpenLayers OpenLayers

Ticket #1291 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

use different server when IMAGE_RELOAD_ATTEMPTS > 1 && layer.url is an array

Reported by: brentp Assigned to: crschmidt
Priority: critical Milestone: 2.7 Release
Component: Util Version: 2.5
Keywords: Cc:
State: Complete

Description

when using multiple servers, there's increased speed, but also increased probability of pink tiles. this patch changes Util.onImageLoadError to try a _different_ server if IMAGE_RELOAD_ATTEMPTS > 1. likely, this should be an toggle-able option as selectUrl specifically chooses the same server every time--presumably for cached stuff. there are other ways of doing this, this is the least intrusive i could find.

Attachments

urls.patch (2.0 kB) - added by brentp on 01/22/08 11:45:02.

Change History

01/22/08 11:33:34 changed by crschmidt

One quick note: this needs to be sure to disconnect imgDiv.layer in the destroy function, otherwise it will result in (more) memory leaks.

01/22/08 11:33:41 changed by crschmidt

  • milestone set to 2.7 Release.

01/22/08 11:45:02 changed by brentp

  • attachment urls.patch added.

03/31/08 02:51:18 changed by crschmidt

  • state changed from Needs Discussion to Review.

07/28/08 15:03:03 changed by euzuro

  • owner set to crschmidt.
  • priority changed from minor to critical.

07/29/08 22:02:36 changed by crschmidt

  • status changed from new to closed.
  • state changed from Review to Complete.
  • resolution set to fixed.

(In [7599]) "use different server when IMAGE_RELOAD_ATTEMPTS > 1 && layer.url is an array". Patch from brentp. (Closes #1291)

09/05/08 02:08:19 changed by euzuro

  • component changed from general to Util.