Skip to content

Commit

Permalink
Merge pull request #115 from carbonplan/katamartin/equirectangular-bu…
Browse files Browse the repository at this point in the history
…gfix

Equirectangular bugfix
  • Loading branch information
katamartin authored Apr 2, 2024
2 parents 47181b6 + ffd117a commit 07ac7c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const pointToTile = (lon, lat, z, projection, order) => {
if (x < 0) x = x + z2
y = Math.max(Math.min(y, z2), 0)
tile = [x, y, z]
break
default:
return
}
Expand Down

0 comments on commit 07ac7c1

Please sign in to comment.