public class QuantizedMeshTilesetMetadata extends Object
| Constructor and Description |
|---|
QuantizedMeshTilesetMetadata(CartographicExtent bounds,
int minimumZoom,
int maximumZoom,
ArrayList<ArrayList<QuantizedMeshTileRange>> availableTiles)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<ArrayList<QuantizedMeshTileRange>> |
getAvailableTiles()
Gets the available tiles in the tileset.
|
CartographicExtent |
getBounds()
Gets the bounds of the tileset.
|
int |
getMaximumZoom()
Gets the maximum zoom level of the tileset.
|
int |
getMinimumZoom()
Gets the minimum zoom level of the tileset.
|
boolean |
isTileAvailable(int level,
int x,
int y)
Calculates whether the tile with the given coordinates is available in the tileset.
|
public QuantizedMeshTilesetMetadata(@Nonnull CartographicExtent bounds, int minimumZoom, int maximumZoom, @Nonnull ArrayList<ArrayList<QuantizedMeshTileRange>> availableTiles)
bounds - The bounds of the tileset.minimumZoom - The minimum zoom level of the tileset.maximumZoom - The maximum zoom level of the tileset.availableTiles - The available tiles in the tileset.
For each zoom level, the corresponding index in the list must contain a list of tile ranges are available.ArgumentNullException - Thrown when bounds or availableTiles is null.public final boolean isTileAvailable(int level,
int x,
int y)
level - The zoom level.x - The X tile coordinate.y - The Y tile coordinate.true if the given tile is available in the tileset; otherwise false.@Nonnull public final CartographicExtent getBounds()
public final int getMinimumZoom()
public final int getMaximumZoom()
@Nonnull public final ArrayList<ArrayList<QuantizedMeshTileRange>> getAvailableTiles()