From 404df03f2567f200b2dcb970e9d3c1359ea330bf Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Tue, 21 Jan 2014 14:56:33 +0100 Subject: [PATCH] cleanup: BitmapTileSource --- .../source/bitmap/BitmapTileSource.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/vtm/src/org/oscim/tiling/source/bitmap/BitmapTileSource.java b/vtm/src/org/oscim/tiling/source/bitmap/BitmapTileSource.java index d94e7b07..edaea7c2 100644 --- a/vtm/src/org/oscim/tiling/source/bitmap/BitmapTileSource.java +++ b/vtm/src/org/oscim/tiling/source/bitmap/BitmapTileSource.java @@ -41,6 +41,22 @@ public abstract class BitmapTileSource extends UrlTileSource { mMimeType = mimeType; } + public int getZoomLevelMax() { + return mZoomMax; + } + + public int getZoomLevelMin() { + return mZoomMin; + } + + public FadeStep[] getFadeSteps() { + return null; + } + + public String getTileUrl(Tile tile) { + return null; + } + @Override public ITileDataSource getDataSource() { LwHttp conn = new LwHttp(mUrl, mMimeType, mFileExtension, false) { @@ -59,22 +75,6 @@ public abstract class BitmapTileSource extends UrlTileSource { return new UrlTileDataSource(this, new BitmapTileDecoder(), conn); } - public int getZoomLevelMax() { - return mZoomMax; - } - - public int getZoomLevelMin() { - return mZoomMin; - } - - public FadeStep[] getFadeSteps() { - return null; - } - - public String getTileUrl(Tile tile) { - return null; - } - public class BitmapTileDecoder implements ITileDecoder { @Override @@ -83,7 +83,7 @@ public abstract class BitmapTileSource extends UrlTileSource { Bitmap bitmap = CanvasAdapter.g.decodeBitmap(is); if (!bitmap.isValid()) { - log.debug("invalid bitmap"); + log.debug("{} invalid bitmap", tile); return false; } sink.setTileImage(bitmap);