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;
|
||||
|
||||
//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
|
||||
xmin = -16;
|
||||
ymin = -16;
|
||||
xmax = Tile.SIZE + 16;
|
||||
ymax = Tile.SIZE + 16;
|
||||
|
||||
// Buffer is half the tile size
|
||||
int buffer = Tile.SIZE / 2;
|
||||
|
||||
xmin = -buffer;
|
||||
ymin = -buffer;
|
||||
xmax = Tile.SIZE + buffer;
|
||||
ymax = Tile.SIZE + buffer;
|
||||
|
||||
if (numRows > 0) {
|
||||
int w = (int) (Tile.SIZE / (numCols + 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user