@Deprecated public class MBTilesMapLayer extends com.nutiteq.rasterlayers.RasterLayer implements UtfGridLayerInterface
zoom_level (zoom level of the tile), tile_column, tile_row, tile_data (compressed tile bitmap)
Constructor and Description |
---|
MBTilesMapLayer(com.nutiteq.projections.Projection projection,
int minZoom,
int maxZoom,
int id,
String path,
android.content.Context ctx)
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close database file.
|
void |
fetchTile(com.nutiteq.components.MapTile tile)
Deprecated.
|
void |
flush()
Deprecated.
|
MBTilesDbHelper |
getDatabase()
Deprecated.
|
Map<String,String> |
getUtfGridTooltips(com.nutiteq.components.MapTile clickedTile,
com.nutiteq.components.MutableMapPos tilePos,
String template)
Deprecated.
|
boolean |
hasUtfGridTooltips()
Deprecated.
|
void |
setTmsY(boolean tmsY)
Deprecated.
|
executeFetchTask, getDataSource, getFetchPriority, getId, getMaxZoom, getMinZoom, getTileColor, getTileIdOffset, getVisibleTiles, isMemoryCaching, isPersistentCaching, isTileFading, registerDataSourceListener, setComponents, setFetchPriority, setMemoryCaching, setPersistentCaching, setRenderProjection, setTileColor, setTileFading, setVisibleTiles, unregisterDataSourceListener, updateVisibleTiles
public MBTilesMapLayer(com.nutiteq.projections.Projection projection, int minZoom, int maxZoom, int id, String path, android.content.Context ctx) throws IOException
projection
- projection for the layer.minZoom
- minimum zoom supported by the layer.maxZoom
- maximum zoom supported by the layer.id
- unique layer id. Id for the layer must be depend ONLY on the
layer source, otherwise tile caching will not work properly.path
- path to the local Sqlite database file. SQLiteException will
be thrown if the database does not exist
or can not be opened in read-only mode.ctx
- Android application context.IOException
- exception if file not existspublic void fetchTile(com.nutiteq.components.MapTile tile)
fetchTile
in class com.nutiteq.rasterlayers.RasterLayer
public void flush()
flush
in class com.nutiteq.rasterlayers.RasterLayer
public void close()
public void setTmsY(boolean tmsY)
public MBTilesDbHelper getDatabase()
public Map<String,String> getUtfGridTooltips(com.nutiteq.components.MapTile clickedTile, com.nutiteq.components.MutableMapPos tilePos, String template)
getUtfGridTooltips
in interface UtfGridLayerInterface
public boolean hasUtfGridTooltips()
hasUtfGridTooltips
in interface UtfGridLayerInterface
Copyright © 2014. All rights reserved.