getRight method

Tile getRight()

Gets the tile immediately to the east (right) of this tile.

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

Implementation

Tile getRight() {
  int x = tileX + 1;
  if (x > getMaxTileNumber(zoomLevel)) {
    x = 0;
  }
  return Tile(x, tileY, zoomLevel, indoorLevel);
}