com.google.android.gms.maps.model.Tile

Here are the examples of the java api class com.google.android.gms.maps.model.Tile taken from open source projects.

1. CachedTileProvider#getTile()

Project: iosched
File: CachedTileProvider.java
/**
     * Load a tile.
     * If cached, the data for the tile is read from the underlying cache, otherwise the tile is
     * generated by the {@link com.google.android.gms.maps.model.TileProvider} and added to the
     * cache.
     */
@Override
public Tile getTile(int x, int y, int zoom) {
    final String key = CachedTileProvider.generateKey(x, y, zoom, mKeyTag);
    Tile tile = getCachedTile(key);
    if (tile == null) {
        // tile not cached, load from provider and then cache
        tile = mTileProvider.getTile(x, y, zoom);
        if (cacheTile(key, tile)) {
            LOGD(TAG, "Added tile to cache " + key);
        }
    }
    return tile;
}