Send feedback
Tile
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
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.
Contains information about a Tile that is returned by a TileProvider .
Inherited Constant Summary
From interface
android.os.Parcelable
int
CONTENTS_FILE_DESCRIPTOR
int
PARCELABLE_WRITE_RETURN_VALUE
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)
Inherited Method Summary
From class
java.lang.Object
boolean
equals (Object arg0)
final
Class<?>
getClass ()
int
hashCode ()
final
void
notify ()
final
void
notifyAll ()
String
toString ()
final
void
wait (long arg0, int arg1)
final
void
wait (long arg0)
final
void
wait ()
From interface
android.os.Parcelable
abstract
int
describeContents ()
abstract
void
writeToParcel (Parcel arg0, int arg1)
Fields
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)
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) .
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-31 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-31 UTC."],[],[]]