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
This commit is contained in:
@@ -342,18 +342,10 @@ OpenLayers.Util.onImageLoad = function() {
|
||||
//
|
||||
if (!this.viewRequestID ||
|
||||
(this.map && this.viewRequestID == this.map.viewRequestID)) {
|
||||
this.style.backgroundColor ="transparent";
|
||||
this.style.display = "";
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Property: onImageLoadErrorColor
|
||||
* {String} The color tiles with load errors will turn.
|
||||
* Default is "pink"
|
||||
*/
|
||||
OpenLayers.Util.onImageLoadErrorColor = "pink";
|
||||
|
||||
/**
|
||||
* Property: IMAGE_RELOAD_ATTEMPTS
|
||||
* {Integer} How many times should we try to reload an image before giving up?
|
||||
@@ -388,7 +380,8 @@ OpenLayers.Util.onImageLoadError = function() {
|
||||
this.src = this.src;
|
||||
}
|
||||
} else {
|
||||
this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor;
|
||||
this.src = OpenLayers.Util.getImagesLocation() + "blank.gif";
|
||||
OpenLayers.Element.addClass(this, "olImageLoadError");
|
||||
}
|
||||
this.style.display = "";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user