Skip to content

Commit

Permalink
fix: fixed incorrect keypad to latlng conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Endebert committed Jul 4, 2018
1 parent 9caded1 commit 6828d45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/assets/Leaflet_extensions/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,9 @@ export function getPos(kp) {
}
i += 1;
}
i += 1;

// at the end, add half of last interval, so it points to the center of the deepest sub-keypad
const interval = 300 / 3 ** i;
const interval = 300 / 3 ** (i - 1);
x += interval / 2;
y += interval / 2;

Expand Down

0 comments on commit 6828d45

Please sign in to comment.