public interface

TileProvider

com.amazon.geo.mapsv2.model.TileProvider
Known Indirect Subclasses

Class Overview

Interface for providing tile images for a TileOverlay. Method calls may be made from multiple threads, so implementations must be thread safe. See TileOverlay for information about the tile coordinate system.

Summary

Fields
public static final Tile NO_TILE Tile that indicates that no tile exists for the specified coordinates.
Public Methods
abstract Tile getTile(int x, int y, int zoom)
Gets the Tile for the given coordinates.

Fields

public static final Tile NO_TILE

Tile that indicates that no tile exists for the specified coordinates.

Public Methods

public abstract Tile getTile (int x, int y, int zoom)

Gets the Tile for the given coordinates. Note that calls to this method may occur on multiple threads.

If you don't want to provide a Tile for a particular set of coordinates, return NO_TILE.

If the Tile for a particular set of coordinates is not currently available, return null. Subsequent requests are retried according to an exponential backoff algorithm.

See TileOverlay for more information about the tile coordinate system.

Parameters
x The x coordinate of the Tile to retrieve, in the closed range [0, 2zoom - 1].
y The y coordinate of the Tile to retrieve, in the closed range [0, 2zoom - 1].
zoom The zoom level of the Tile to retrieve, in the closed range [ AmazonMap.getMinZoomLevel(), AmazonMap.getMaxZoomLevel()].
Returns
  • The Tile to use for the given coordinates. Return NO_TILE if no tile exists for the coordinates. Return null if the tile for the coordinates is not currently available.