TileProvider
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
An interface for a class that provides the tile images for a TileOverlay
.
For information about the tile coordinate system, see TileOverlay
.
Calls to methods in this interface might be made from multiple threads so implementations
of this interface must be threadsafe.
Field Summary
public static final Tile
|
NO_TILE
|
Stub tile that is used to indicate that no tile
exists for a specific tile coordinate. |
Public Method Summary
abstract Tile
|
getTile(int x, int y, int zoom)
Returns the tile to be used for this tile coordinate.
|
Fields
public static final Tile
NO_TILE
Stub tile that is used to indicate that no tile exists for a specific tile
coordinate.
Public Methods
public abstract Tile
getTile (int x, int y,
int zoom)
Returns the tile to be used for this tile coordinate.
Parameters
x |
The x coordinate of the tile. This will be in the range [0, 2zoom -
1] inclusive. |
y |
The y coordinate of the tile. This will be in the range [0, 2zoom -
1] inclusive. |
zoom |
The zoom level of the tile. This will be in the range [ GoogleMap.getMinZoomLevel ,
GoogleMap.getMaxZoomLevel ]
inclusive. |
Returns
- the
Tile
to
be used for this tile coordinate. If you do not wish to provide a tile for this tile
coordinate, return NO_TILE
.
If the tile could not be found at this point in time, return null
and
further requests might be made with an exponential backoff.
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 2021-04-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]