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)