getBounds(layer) {
		const bounds = layer instanceof TMXLayer ? boundsPool.get() : this.bounds;

		// The map size is the same regardless of which indexes are shifted.
		if (this.staggerX) {
			bounds.setMinMax(
				0,
				0,
				this.cols * this.columnwidth + this.sideoffsetx,
				this.rows * (this.tileheight + this.sidelengthy),
			);
			if (bounds.width > 1) {
				bounds.height += this.rowheight;
			}
		} else {
			bounds.setMinMax(
				0,
				0,
				this.cols * (this.tilewidth + this.sidelengthx),
				this.rows * this.rowheight + this.sideoffsety,
			);
			if (bounds.height > 1) {
				bounds.width += this.columnwidth;
			}
		}
		return bounds;
	}
return the bounding rect for this map renderer
@ignore