Make image load error color configurable. Document it.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-26 16:05:25 +00:00
parent ecdb77fa9c
commit 8be2cfbc71
3 changed files with 11 additions and 2 deletions

View File

@@ -131,8 +131,10 @@ OpenLayers.Util.onImageLoad = function() {
this.style.display = "";
};
OpenLayers.Util.onImageLoadErrorColor = "pink";
OpenLayers.Util.onImageLoadError = function() {
this.style.backgroundColor = "pink";
this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor;
};