java.lang.Object | |
↳ | com.google.android.gms.maps.model.UrlTileProvider |
A partial implementation of TileProvider
that only requires a URL that points to an image
to be provided.
Note that this class requires that all the images have the same dimensions.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface com.google.android.gms.maps.model.TileProvider |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a UrlTileProvider.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the tile to be used for this tile coordinate.
| |||||||||||
Returns a
URL that points to the image to be used for this tile. |
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
From interface com.google.android.gms.maps.model.TileProvider |
Constructs a UrlTileProvider.
width | width of the images used for tiles |
---|---|
height | height of the images used for tiles |
Returns the tile to be used for this tile coordinate.
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 a URL
that points to the image to be used for this tile. If no image is found
on the initial request, further requests will be made with an exponential backoff. If you do
not wish to provide an image for this tile coordinate, return null.
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. |
URL
that points to the image to be used for this tile. If you do not
wish to provide an image for this tile coordinate, return null
.