Skip to content

Commit

Permalink
Merge pull request #576 from OpenGeoscience/null-renderer-alignment
Browse files Browse the repository at this point in the history
Fix an alignment issue with the null renderer.
  • Loading branch information
manthey committed May 13, 2016
2 parents 15501eb + 84e8717 commit aedf747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,8 @@ module.exports = (function () {
rotation = map.rotation(),
rx = -to.x + -(view.left + view.right) / 2 + offset.x,
ry = -to.y + -(view.bottom + view.top) / 2 + offset.y,
dx = (rx + map.size().width / 2) * scale,
dy = (ry + map.size().height / 2) * scale;
dx = (rx + map.size().width / 2),
dy = (ry + map.size().height / 2);

this.canvas().css({
'transform-origin': '' +
Expand Down

0 comments on commit aedf747

Please sign in to comment.