Allow custom tile size instead of the calculated one
This commit is contained in:
@@ -84,7 +84,8 @@ public class MapView extends GLSurfaceView {
|
|||||||
|
|
||||||
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
||||||
CanvasAdapter.dpi = (int) (metrics.scaledDensity * CanvasAdapter.DEFAULT_DPI);
|
CanvasAdapter.dpi = (int) (metrics.scaledDensity * CanvasAdapter.DEFAULT_DPI);
|
||||||
Tile.SIZE = Tile.calculateTileSize();
|
if (!Parameters.CUSTOM_TILE_SIZE)
|
||||||
|
Tile.SIZE = Tile.calculateTileSize();
|
||||||
|
|
||||||
/* Initialize the Map */
|
/* Initialize the Map */
|
||||||
mMap = new AndroidMap(this);
|
mMap = new AndroidMap(this);
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ package org.oscim.utils;
|
|||||||
|
|
||||||
public final class Parameters {
|
public final class Parameters {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allow custom tile size instead of the calculated one.
|
||||||
|
*/
|
||||||
|
public static boolean CUSTOM_TILE_SIZE = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true the <code>MapEventLayer2</code> will be used instead of default <code>MapEventLayer</code>.
|
* If true the <code>MapEventLayer2</code> will be used instead of default <code>MapEventLayer</code>.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user