code: function() {        
          var withinMaxExtent = false,
              maxExtent = this.layer.maxExtent;
          if (maxExtent) {
              var map = this.layer.map;
              var worldBounds = map.baseLayer.wrapDateLine && map.getMaxExtent();
              if (this.bounds.intersectsBounds(maxExtent, {inclusive: false, worldBounds: worldBounds})) {
                  withinMaxExtent = true;
              }
          }
          
          return withinMaxExtent || this.layer.displayOutsideMaxExtent;
      }
docs: Method: shouldDraw
  Return whether or not the tile should actually be (re-)drawn. The only
  case where we *wouldn't* want to draw the tile is if the tile is outside
  its layer's maxExtent
  
  Returns:
  {Boolean} Whether or not the tile should actually be drawn.