diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index fe82f36318..c01167af78 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -286,6 +286,8 @@ OpenLayers.Layer.prototype = { if (!this.isBaseLayer) { this.inRange = this.calculateInRange(); + var show = ((this.visibility) && (this.inRange)); + this.div.style.display = show ? "" : "none"; } // deal with gutters