OpenLayers OpenLayers

Ticket #1291 (new feature)

Opened 6 months ago

Last modified 4 months ago

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

Reported by: brentp Assigned to:
Priority: minor Milestone: 2.7 Release
Component: general Version: 2.5
Keywords: Cc:
State: Review

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.