Skip to content

Commit

Permalink
Merge pull request #19 from samwillis/master
Browse files Browse the repository at this point in the history
Fix bug where there are white lines between tiles when scale*256 isn't whole number
  • Loading branch information
flippmoke authored Oct 26, 2016
2 parents cb9f527 + 12135de commit 65ce36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ abaculus.tileList = function(z, s, center, tileSize) {
h = center.h;
var dimensions = {x: w, y: h};
var size = tileSize || 256;
var ts = Math.round(size * s);
var ts = Math.floor(size * s);

var centerCoordinate = {
column: x / size,
Expand Down

0 comments on commit 65ce36b

Please sign in to comment.