public class GLMapRasterTileSource
extends java.lang.Object
| 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)
This method is used to get bitmap of tile.
|
long |
cacheSize()
Returns size of cache database
|
void |
dispose() |
void |
dropCache()
Drop cached tiles
|
void |
setAttributionText(java.lang.String text)
This method is used to set 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)
This method is used to set size of tile in points.
|
void |
setValidZoomMask(int validZoomMask)
This method is used to define valid zooms for tile source.
|
java.lang.String |
urlForTilePos(int x,
int y,
int z)
This method is used to get 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 © 2017 GetYourMap. All Rights Reserved.