Fix a bug in accuracy computation

This commit is contained in:
Lucas Verney 2018-06-27 22:45:03 +02:00
parent 01fa63f916
commit 56b38eba06

View File

@ -49,7 +49,7 @@ export default {
radiusFromAccuracy() {
if (this.accuracy) {
return this.accuracy / (
(constants.EARTH_RADIUS * 2 * Math.PI * Math.cos(this.lat)) /
(constants.EARTH_RADIUS * 2 * Math.PI * Math.cos(this.lat * (Math.PI / 180))) /
(2 ** (this.zoom + 8))
);
}