From 9285ae85368e70c8ab6446adf88a6eeca5d5440f Mon Sep 17 00:00:00 2001 From: Hannes Janetzek <hannes.janetzek@gmail.com> Date: Sat, 15 Feb 2014 14:16:09 +0100 Subject: [PATCH] do not set Tile.SIZE in MapView constructor this way users can change static Tile.SIZE before initiating the MapView. --- vtm-android/src/org/oscim/android/MapView.java | 3 --- vtm/src/org/oscim/core/Tile.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/vtm-android/src/org/oscim/android/MapView.java b/vtm-android/src/org/oscim/android/MapView.java index f9c13e1a..9d413129 100644 --- a/vtm-android/src/org/oscim/android/MapView.java +++ b/vtm-android/src/org/oscim/android/MapView.java @@ -99,9 +99,6 @@ public class MapView extends RelativeLayout { DisplayMetrics metrics = getResources().getDisplayMetrics(); CanvasAdapter.dpi = (int) Math.max(metrics.xdpi, metrics.ydpi); - // TODO make this dpi dependent - Tile.SIZE = 400; - mMap = new AndroidMap(this); if (context instanceof MapActivity) diff --git a/vtm/src/org/oscim/core/Tile.java b/vtm/src/org/oscim/core/Tile.java index 64a16f41..5c77bac9 100644 --- a/vtm/src/org/oscim/core/Tile.java +++ b/vtm/src/org/oscim/core/Tile.java @@ -27,7 +27,7 @@ public class Tile { /** * Width and height of a map tile in pixel. */ - public static int SIZE = 256; + public static int SIZE = 400; /** * The X number of this tile.