Interface TileUrlProviderCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TileUrlProviderCallback

Provides the URL as String for the given tile coordinates and storage level.

The first and second parameters correspond to the X and Y coordinates of the tile, respectively, and have values ranging from 0 to 2^level − 1. The third parameter indicates the level of the tile.

  • Method Summary

    Modifier and Type
    Method
    Description
    onTileUrlRequest(int x, int y, int level)
    Provides the URL as String for the given tile coordinates and storage level.
  • Method Details

    • onTileUrlRequest

      @NonNull String onTileUrlRequest(int x, int y, int level)

      Provides the URL as String for the given tile coordinates and storage level.

      The first and second parameters correspond to the X and Y coordinates of the tile, respectively, and have values ranging from 0 to 2^level − 1. The third parameter indicates the level of the tile.

      Parameters:
      x -

      X coordinate of the tile. This ranges from 0 to 2^level − 1.

      y -

      Y coordinate of the tile. This ranges from 0 to 2^level − 1.

      level -

      Level of the tile.

      Returns:

      the URL.