getLeft method

Tile getLeft()

Returns the tile to the left of this tile.

@return tile to the left.

Implementation

Tile getLeft() {
  int x = tileX - 1;
  if (x < 0) {
    x = getMaxTileNumber(this.zoomLevel);
  }
  return new Tile(x, this.tileY, this.zoomLevel, this.indoorLevel);
}