getLeft method

Tile getLeft()

Gets the tile immediately to the west (left) of this tile.

Wraps around the world boundary if necessary. Returns the western neighbor tile

Implementation

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