code: function (layer) {
              var bounds = layer instanceof me.TMXLayer ? me.pool.pull("me.Rect", 0, 0, 0, 0) : this.bounds;
  
              // origin is always 0 for finite maps
              bounds.pos.set(0, 0);
              // The map size is the same regardless of which indexes are shifted.
              if (this.staggerX) {
                  bounds.resize(
                      this.cols * this.columnwidth + this.sideoffsetx,
                      this.rows * (this.tileheight + this.sidelengthy)
                  );
                  if (bounds.width > 1) {
                      bounds.height += this.rowheight;
                  }
              } else {
                  bounds.resize(
                      this.cols * (this.tilewidth + this.sidelengthx),
                      this.rows * this.rowheight + this.sideoffsety
                  );
                  if (bounds.height > 1) {
                      bounds.width += this.columnwidth;
                  }
              }
              return bounds;
          }
docs: return the bounding rect for this map renderer
  @name me.TMXHexagonalRenderer#getBounds
  @public
  @function
  @param {me.TMXLayer} [layer] calculate the bounding rect for a specific layer (will return a new bounds object)
  @return {me.Rect}