[OpenLayers-Commits] r12389 - trunk/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Sat Sep 17 15:49:12 EDT 2011
Author: fredj
Date: 2011-09-17 12:49:11 -0700 (Sat, 17 Sep 2011)
New Revision: 12389
Modified:
trunk/openlayers/examples/xyz-esri.html
trunk/openlayers/examples/xyz-offset.js
Log:
use olImageLoadError class to hide unavailable img. non functional changes
Modified: trunk/openlayers/examples/xyz-esri.html
===================================================================
--- trunk/openlayers/examples/xyz-esri.html 2011-09-17 19:42:31 UTC (rev 12388)
+++ trunk/openlayers/examples/xyz-esri.html 2011-09-17 19:49:11 UTC (rev 12389)
@@ -7,11 +7,15 @@
<title>OpenLayers Basic ESRI Map Cache Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
+ <style>
+ .olImageLoadError {
+ display: none;
+ }
+ </style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
function init(){
- OpenLayers.Util.onImageLoadError = function() { this.style.display="none";}
var layerExtent = new OpenLayers.Bounds( -13758743.4295939, 5591455.28887228, -13531302.3472101 , 5757360.4178881)
map = new OpenLayers.Map( 'map', {'restrictedExtent': layerExtent} );
layer = new OpenLayers.Layer.XYZ( "ESRI",
Modified: trunk/openlayers/examples/xyz-offset.js
===================================================================
--- trunk/openlayers/examples/xyz-offset.js 2011-09-17 19:42:31 UTC (rev 12388)
+++ trunk/openlayers/examples/xyz-offset.js 2011-09-17 19:49:11 UTC (rev 12389)
@@ -1,10 +1,5 @@
var map, layer;
-// if tiles are not available, hide images
-//OpenLayers.Util.onImageLoadError = function() {
-// this.style.display = "none";
-//}
-
// called on body load
function init() {
More information about the Commits
mailing list