public class GLMapRasterTileSource
extends java.lang.Object
GLMapRasterTileSource setups custom raster tile source.| Modifier and Type | Class and Description |
|---|---|
static interface |
com.glmapview.GLNativeObject.Type |
| Constructor and Description |
|---|
GLMapRasterTileSource(java.lang.String cachePath)
Default constructor of GLMapRasterTileSource
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
bitmapForTilePos(int x,
int y,
int z)
Gets bitmap of tile.
|
long |
cacheSize()
Returns size of cache database
|
void |
dispose() |
void |
dropCache()
Drops cached tiles
|
void |
setAttributionText(java.lang.String text)
Sets attribution text.
|
void |
setTileRefreshTimeInterval(long tileRefreshTimeInterval)
Cached tile will be refreshed if it will stay in cache more than given time.
|
void |
setTileSize(int tileSize)
Sets size of tile in points.
|
void |
setValidZoomMask(int validZoomMask)
Defines valid zooms for tile source.
|
java.lang.String |
urlForTilePos(int x,
int y,
int z)
Gets url of tile.
|
public GLMapRasterTileSource(java.lang.String cachePath)
throws java.lang.OutOfMemoryError
cachePath - Path where database with cached tiles will be stored. If cachePath is `null` no caching will happens.java.lang.OutOfMemoryErrorpublic java.lang.String urlForTilePos(int x,
int y,
int z)
x - x coordinate of tiley - y coordinate of tilez - z coordinate of tilepublic android.graphics.Bitmap bitmapForTilePos(int x,
int y,
int z)
x - x coordinate of tiley - y coordinate of tilez - z coordinate of tilepublic void setTileRefreshTimeInterval(long tileRefreshTimeInterval)
tileRefreshTimeInterval - New refresh time interval for sourcepublic void dropCache()
public long cacheSize()
public void setValidZoomMask(int validZoomMask)
validZoomMask - New zoom mask for tile sourcepublic void setTileSize(int tileSize)
tileSize - New tile size for tile sourcepublic void setAttributionText(java.lang.String text)
text - New attribution text for tile sourcepublic void dispose()
Copyright © 2018 GetYourMap. All Rights Reserved.