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:
parent
0aaca44795
commit
9285ae8536
@ -99,9 +99,6 @@ public class MapView extends RelativeLayout {
|
|||||||
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
||||||
CanvasAdapter.dpi = (int) Math.max(metrics.xdpi, metrics.ydpi);
|
CanvasAdapter.dpi = (int) Math.max(metrics.xdpi, metrics.ydpi);
|
||||||
|
|
||||||
// TODO make this dpi dependent
|
|
||||||
Tile.SIZE = 400;
|
|
||||||
|
|
||||||
mMap = new AndroidMap(this);
|
mMap = new AndroidMap(this);
|
||||||
|
|
||||||
if (context instanceof MapActivity)
|
if (context instanceof MapActivity)
|
||||||
|
@ -27,7 +27,7 @@ public class Tile {
|
|||||||
/**
|
/**
|
||||||
* Width and height of a map tile in pixel.
|
* 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.
|
* The X number of this tile.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user