From f0000576593c2119eb0d534daff4d5e85cfd4c92 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sat, 24 Oct 2009 05:57:41 +0000 Subject: [PATCH] making pink tiles a css matter. p=rdewit, r=me (closes #2318) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9758 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/draw-feature.html | 6 +++++- examples/measure.html | 6 +++++- examples/regular-polygons.html | 6 +++++- examples/spherical-mercator.html | 8 ++++++-- examples/split-feature.html | 7 ++++++- examples/wmc.html | 8 ++++++-- lib/OpenLayers/Util.js | 11 ++--------- tests/Util.html | 13 +++++++++++++ tests/manual/clip-features-svg.html | 26 ++++++++++++++++---------- tests/manual/google-panning.html | 8 +++++++- tests/manual/tiles-loading.html | 4 ++-- tests/manual/ve-opacity.html | 5 ++--- theme/default/img/broken.png | Bin 0 -> 223 bytes theme/default/style.css | 9 ++++++++- 14 files changed, 83 insertions(+), 34 deletions(-) create mode 100644 theme/default/img/broken.png diff --git a/examples/draw-feature.html b/examples/draw-feature.html index 2affeba8b0..24c3cfe9e6 100644 --- a/examples/draw-feature.html +++ b/examples/draw-feature.html @@ -11,11 +11,15 @@ p { width: 512px; } + + /* avoid pink tiles */ + .olImageLoadError { + background-color: transparent !important; + } @@ -20,9 +25,8 @@ // make map available for easy debugging var map; - // avoid pink tiles + // increase reload attempts OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; - OpenLayers.Util.onImageLoadErrorColor = "transparent"; function init(){ var options = { diff --git a/examples/split-feature.html b/examples/split-feature.html index c235ba46a5..4effe06275 100644 --- a/examples/split-feature.html +++ b/examples/split-feature.html @@ -4,10 +4,15 @@ + @@ -22,9 +23,8 @@ // make map available for easy debugging var map; - // avoid pink tiles + // increase reload attempts OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; - OpenLayers.Util.onImageLoadErrorColor = "transparent"; function init(){ var options = { diff --git a/tests/manual/ve-opacity.html b/tests/manual/ve-opacity.html index 8352941add..22fa43a4f2 100644 --- a/tests/manual/ve-opacity.html +++ b/tests/manual/ve-opacity.html @@ -8,7 +8,7 @@ } - +