Tile

  • Tile objects represent rectangular map tiles, containing image data for display.

  • They contain the raw image data (data), width, and height in pixels.

  • You can create a Tile by providing the width, height, and image data as a byte array.

  • Tile objects are provided by a TileProvider and used to display map imagery.

public final class Tile extends Object
implements Parcelable

Contains information about a Tile that is returned by a TileProvider.

Inherited Constant Summary

Field Summary

public final byte[] data A byte array containing the image data.
public final int height The height of the image encoded by data in pixels.
public final int width The width of the image encoded by data in pixels.

Public Constructor Summary

Tile(int width, int height, byte[] data)
Constructs a Tile.

Inherited Method Summary

Fields

public final byte[] data

A byte array containing the image data. The image will be created from this data by calling decodeByteArray(byte[], int, int).

public final int height

The height of the image encoded by data in pixels.

public final int width

The width of the image encoded by data in pixels.

Public Constructors

public Tile (int width, int height, byte[] data)

Constructs a Tile.

Parameters
width the width of the image in pixels
height the height of the image in pixels
data A byte array containing the image data. The image will be created from this data by calling decodeByteArray(byte[], int, int).