MapDatabase: use TileClipper buffer based on dpi, #231
This commit is contained in:
parent
58b5f2741b
commit
51eae28926
@ -19,6 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.oscim.tiling.source.mapfile;
|
package org.oscim.tiling.source.mapfile;
|
||||||
|
|
||||||
|
import org.oscim.backend.CanvasAdapter;
|
||||||
import org.oscim.core.GeometryBuffer.GeometryType;
|
import org.oscim.core.GeometryBuffer.GeometryType;
|
||||||
import org.oscim.core.MapElement;
|
import org.oscim.core.MapElement;
|
||||||
import org.oscim.core.MercatorProjection;
|
import org.oscim.core.MercatorProjection;
|
||||||
@ -383,8 +384,8 @@ public class MapDatabase implements ITileDataSource {
|
|||||||
|
|
||||||
//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
|
//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
|
||||||
|
|
||||||
// Buffer is half the tile size
|
// Buffer based on dpi
|
||||||
int buffer = Tile.SIZE / 2;
|
int buffer = (int) (16 * CanvasAdapter.dpi / CanvasAdapter.DEFAULT_DPI + 0.5f);
|
||||||
|
|
||||||
xmin = -buffer;
|
xmin = -buffer;
|
||||||
ymin = -buffer;
|
ymin = -buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user