public abstract class UrlMapRasterTileSourceBase extends MapRasterTileSource
getUrl(int, int, int)
method to create custom URL
raster tile sources.MapRasterTileSource.MapTileSystemHelper, MapRasterTileSource.TileResult
Modifier | Constructor and Description |
---|---|
protected |
UrlMapRasterTileSourceBase() |
Modifier and Type | Method and Description |
---|---|
MapRasterTileSource.TileResult |
getTileWithError(int x,
int y,
int zoomLevel)
UrlMapRasterTileSourceBase will only retrieve tile data using the source URL. |
abstract java.lang.String |
getUrl(int x,
int y,
int zoomLevel)
Gets the URL representing the source of the specified raster tile image.
|
boolean |
hasTile(int x,
int y,
int zoomLevel)
UrlMapRasterTileSourceBase will only retrieve tile data using the source URL. |
getBoundingArea, getCacheExpiration, getZIndex, hideAtZoomLevel, hideAtZoomRange, isCachingEnabled, isShownAtZoomLevel, setBoundingArea, setCacheExpiration, setCachePrefix, setCachingEnabled, setZIndex, showAtZoomLevel, showAtZoomRange
public abstract java.lang.String getUrl(int x, int y, int zoomLevel)
Note: implementations of raster tile sources must override this method to provide a complete URL string pointing to the raster tile image.
x
- A current raster tile's X-coordinatey
- A current raster tile's Y-coordinatezoomLevel
- A current raster tile's zoom levelnull
if an URL cannot be
created.public final boolean hasTile(int x, int y, int zoomLevel)
UrlMapRasterTileSourceBase
will only retrieve tile data using the source URL. So
hasTile
always returned false
.hasTile
in class MapRasterTileSource
x
- X coordinatey
- Y coordinatezoomLevel
- zoom levelpublic final MapRasterTileSource.TileResult getTileWithError(int x, int y, int zoomLevel)
UrlMapRasterTileSourceBase
will only retrieve tile data using the source URL. A
TileResult.getData() always returns null
and TileResult.getError() always returns
MapRasterTileSource.TileResult.Error.NONE
.getTileWithError
in class MapRasterTileSource
x
- X coordinatey
- Y coordinatezoomLevel
- zoom levelTileResult
representing tile data and operation error. Check
TileResult#getError()
to check for error. Check TileResult#getData()
to get RasterTile