do not set Tile.SIZE in MapView constructor

this way users can change static Tile.SIZE before initiating
the MapView.
This commit is contained in:
Hannes Janetzek 2014-02-15 14:16:09 +01:00
parent 0aaca44795
commit 9285ae8536
2 changed files with 1 additions and 4 deletions

View File

@ -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)

View File

@ -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.