TMSLayer

public abstract class TMSLayer extends Layer

Fields

HTTP_SEPARATE_THREADS

protected static final int HTTP_SEPARATE_THREADS

JSON_CACHE_SIZE_MULT

protected static final String JSON_CACHE_SIZE_MULT

JSON_TMSTYPE_KEY

protected static final String JSON_TMSTYPE_KEY

TILE_EXT

public static final String TILE_EXT

lock

protected final Object lock

mBitmapCache

protected Map<String, Bitmap> mBitmapCache

mCacheSize

protected int mCacheSize

mTMSType

protected int mTMSType

mViewWidth

protected int mViewWidth

Constructors

TMSLayer

protected TMSLayer(Context context, File path)

Methods

clearCache

public void clearCache()

fillFromNgrc

public void fillFromNgrc(Uri uri, IProgressor progressor)

fillFromZip

public void fillFromZip(Uri uri, IProgressor progressor)

fillFromZipInt

protected void fillFromZipInt(Uri uri, IProgressor progressor)

fromJSON

public void fromJSON(JSONObject jsonObject)

getBitmap

public abstract Bitmap getBitmap(TileItem tile)

getBitmapFromCache

protected Bitmap getBitmapFromCache(String tileHash)

getCacheSizeMultiply

public int getCacheSizeMultiply()

getMaxThreadCount

public int getMaxThreadCount()

getTMSType

public int getTMSType()

lruCache

protected static <K, V> Map<K, V> lruCache(int maxSize)

putBitmapToCache

protected void putBitmapToCache(String tileHash, Bitmap bitmap)

setCacheSizeMultiply

public void setCacheSizeMultiply(int cacheSizeMult)

setTMSType

public void setTMSType(int type)

setViewSize

public void setViewSize(int w, int h)

toJSON

public JSONObject toJSON()