Ticket #447 (closed feature: fixed)

Opened 6 years ago

Last modified 6 years ago

allow multiple image reload attempts before going pink

Reported by: tschaub Owned by: tschaub
Priority: minor Milestone: 2.3 Release
Component: general Version:
Keywords: Cc:
State:

Description

The following patch takes Stuart Eve's idea to avoid all the pink tiles. 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).

This is somewhat tough to test (requires a timeout), but I have seen it working with the vmap0 wms by adding a console.log, watching additional requests, and getting no pink. (With 0 reload attempts, I frequently get pink.)

Please review.

Attachments

avoid_pink.patch Download (0.7 KB) - added by tschaub 6 years ago.
patch to allow multiple image reloads before going pink

Change History

Changed 6 years ago by tschaub

patch to allow multiple image reloads before going pink

Changed 6 years ago by crschmidt

  • status changed from new to closed
  • resolution set to fixed

Applied with r2048. Thanks Tim/Stuart/Chris.

Note: See TracTickets for help on using tickets.