public class UrlTileGenerator extends TileGenerator
boundingBox, context, projection| Constructor and Description |
|---|
UrlTileGenerator(Context context,
GeoPackage geoPackage,
String tableName,
String tileUrl,
int minZoom,
int maxZoom,
BoundingBox boundingBox,
Projection projection)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
createTile(int z,
long x,
long y)
Create the tile
|
boolean |
isTms()
Is TMS URL
|
protected void |
preTileGeneration()
Called after set up and right before tile generation starts for the first
zoom level
|
void |
setTms(boolean tms)
Set the TMS URL flag
|
close, generateTiles, getCompressFormat, getCompressQuality, getGeoPackage, getMaxZoom, getMinZoom, getProgress, getScaling, getTableName, getTileCount, isGoogleTiles, setBitmapCompressionConfig, setCompressFormat, setCompressQuality, setGoogleTiles, setProgress, setScalingpublic UrlTileGenerator(Context context, GeoPackage geoPackage, String tableName, String tileUrl, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection)
context - app contextgeoPackage - GeoPackagetableName - table nametileUrl - tile urlminZoom - min zoommaxZoom - max zoomboundingBox - tiles bounding boxprojection - tiles projectionpublic boolean isTms()
public void setTms(boolean tms)
tms - true if a TMS URLprotected void preTileGeneration()
preTileGeneration in class TileGeneratorprotected byte[] createTile(int z,
long x,
long y)
createTile in class TileGenerator