code: function(display) {
          OpenLayers.Layer.prototype.display.apply(this, arguments);
          // we need to set the display style of the root in case it is attached
          // to a foreign layer
          var currentDisplay = this.div.style.display;
          if(currentDisplay != this.renderer.root.style.display) {
              this.renderer.root.style.display = currentDisplay;
          }
      }
docs: APIMethod: display
  Hide or show the Layer
  
  Parameters:
  display - {Boolean}