Class TileKey
Key of a data source tile.
Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TileKeyfromGeoCoordinates(GeoCoordinates coordinates, int storageLevel, TilingScheme tilingScheme) Creates a tile key containing specified coordinates at specified storage level and tiling scheme.inthashCode()
-
Field Details
-
x
public int xX coordinate of the tile. This ranges from 0 to 2^level − 1.
-
y
public int yY coordinate of the tile. This ranges from 0 to 2^level − 1.
-
level
public int levelLevel of the tile. Supported range [0, 31].
-
-
Constructor Details
-
TileKey
public TileKey(int x, int y, int level) Creates a new instance.
- 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. Supported range [0, 31].
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
fromGeoCoordinates
@NonNull public static TileKey fromGeoCoordinates(@NonNull GeoCoordinates coordinates, int storageLevel, @NonNull TilingScheme tilingScheme) Creates a tile key containing specified coordinates at specified storage level and tiling scheme.
For tiling schemes using Web Mercator projection, the latitude of input coordinates is clamped to [-85.05113, 85.05113] range.
- Parameters:
coordinates-The coordinates for which to create the tile key.
storageLevel-The storage level of the tile key, clamped to [0, 31].
tilingScheme-The tiling scheme to use for the tile key.
- Returns:
Tile key containing specified coordinates.
-