Skip to content

Commit 65ce36b

Browse files
authored
Merge pull request #19 from samwillis/master
Fix bug where there are white lines between tiles when scale*256 isn't whole number
2 parents cb9f527 + 12135de commit 65ce36b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ abaculus.tileList = function(z, s, center, tileSize) {
7575
h = center.h;
7676
var dimensions = {x: w, y: h};
7777
var size = tileSize || 256;
78-
var ts = Math.round(size * s);
78+
var ts = Math.floor(size * s);
7979

8080
var centerCoordinate = {
8181
column: x / size,

0 commit comments

Comments
 (0)