RemoteTMSLayer

public class RemoteTMSLayer extends TMSLayer

Fields

DELAY

public static final long DELAY

JSON_LOGIN_KEY

protected static final String JSON_LOGIN_KEY

JSON_PASSWORD_KEY

protected static final String JSON_PASSWORD_KEY

JSON_TILE_AGE_KEY

protected static final String JSON_TILE_AGE_KEY

JSON_URL_KEY

protected static final String JSON_URL_KEY

mCurrentSubdomain

protected int mCurrentSubdomain

mLastCheckTime

protected volatile long mLastCheckTime

mLogin

protected String mLogin

mNet

protected NetworkUtil mNet

mPassword

protected String mPassword

mStartDate

protected String mStartDate

mSubDomainsMask

protected String mSubDomainsMask

mSubdomains

protected final List<String> mSubdomains

mTileMaxAge

protected long mTileMaxAge

mURL

protected String mURL

Constructors

RemoteTMSLayer

public RemoteTMSLayer(Context context, File path)

Methods

analizeURL

protected void analizeURL(String url)

downloadTile

public boolean downloadTile(TileItem tile, boolean tileExists)

fromJSON

public void fromJSON(JSONObject jsonObject)

getBitmap

public Bitmap getBitmap(TileItem tile)

getExtents

public GeoEnvelope getExtents()

getLogin

public String getLogin()

getMaxThreadCount

public int getMaxThreadCount()

getPassword

public String getPassword()

getTileFromStream

protected void getTileFromStream(String url, File tilePath)

getTileMaxAge

public long getTileMaxAge()

getURL

public String getURL()

getURLSubdomain

public String getURLSubdomain()

onPrepare

public synchronized void onPrepare()

setEndDate

public void setEndDate(String endDate)

setLogin

public void setLogin(String login)

setPassword

public void setPassword(String password)

setStartDate

public void setStartDate(String startDate)

setTileMaxAge

public void setTileMaxAge(long tileMaxAge)

setURL

public void setURL(String URL)

toJSON

public JSONObject toJSON()