TileUrlProviderCallback typedef

TileUrlProviderCallback = String Function(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.

  • 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.

Implementation

typedef TileUrlProviderCallback = String Function(int x, int y, int level);