getAbove method

Tile getAbove()

Returns the tile above this tile.

@return tile above

Implementation

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