Skip to content

Commit

Permalink
Merge bee79c4 into 2d6b7ae
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey committed Jul 5, 2018
2 parents 2d6b7ae + bee79c4 commit 479a5c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transform.js
Expand Up @@ -38,10 +38,10 @@ export default function transformTile(tile, extent) {

function transformPoint(x, y, z, extent, z2, tx, ty) {
if (z !== null) {
var z_percision = 40097932.2 / (z2 * extent);
var zPrecision = 40097932.2 / (z2 * extent);
return [Math.round(extent * (x * z2 - tx)),
Math.round(extent * (y * z2 - ty)),
Math.round(z / z_percision)];
Math.round(z / zPrecision)];
} else {
return [Math.round(extent * (x * z2 - tx)),
Math.round(extent * (y * z2 - ty))];
Expand Down

0 comments on commit 479a5c8

Please sign in to comment.