java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.UrlTileProvider |
An implementation of TileProvider
that returns URLs to tiles, all of
which must be the same size, for the map engine to download and cache as
needed.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
UrlTileProvider for images of the given width and
height. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A
UrlTileProvider always returns NO_TILE . | |||||||||||
Method called by the map engine to retrieve a URL to an image for the
given coordinates.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new UrlTileProvider
for images of the given width and
height.
width | The width, in pixels, for all images addressed by URLs
returned from
getTileUrl(int, int, int) . |
---|---|
height | The height, in pixels, for all images addressed by URLs
returned from
getTileUrl(int, int, int) .
|
A UrlTileProvider
always returns NO_TILE
.
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() ]. |
Method called by the map engine to retrieve a URL to an image for the given coordinates.
x | A horizontal world coordinate value from 0 to 2^zoom-1 |
---|---|
y | A vertical world coordinate value from 0 to 2^zoom-1 |
zoom | The zoom level from getMinZoomLevel() to
getMaxZoomLevel() . |
null
if there is no Tile
for
the given coordinates and/or zoom level. The engine attempts to
download images from the provided URL on background threads and
may attempt to download several images in parallel. Network
failures may result in retries but the retries are limited and/or
delayed by exponentially increasing time intervals.