MapDatabase: use TileClipper buffer as half the tile size, #231
This commit is contained in:
parent
439f2b20ff
commit
a709bd2623
@ -382,10 +382,14 @@ public class MapDatabase implements ITileDataSource {
|
|||||||
long numCols = queryParameters.toBlockX - queryParameters.fromBlockX;
|
long numCols = queryParameters.toBlockX - queryParameters.fromBlockX;
|
||||||
|
|
||||||
//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
|
//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
|
||||||
xmin = -16;
|
|
||||||
ymin = -16;
|
// Buffer is half the tile size
|
||||||
xmax = Tile.SIZE + 16;
|
int buffer = Tile.SIZE / 2;
|
||||||
ymax = Tile.SIZE + 16;
|
|
||||||
|
xmin = -buffer;
|
||||||
|
ymin = -buffer;
|
||||||
|
xmax = Tile.SIZE + buffer;
|
||||||
|
ymax = Tile.SIZE + buffer;
|
||||||
|
|
||||||
if (numRows > 0) {
|
if (numRows > 0) {
|
||||||
int w = (int) (Tile.SIZE / (numCols + 1));
|
int w = (int) (Tile.SIZE / (numCols + 1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user