From 56b38eba06493545d8ce87242347fe680a42eaa8 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 27 Jun 2018 22:45:03 +0200 Subject: [PATCH] Fix a bug in accuracy computation --- src/components/Map.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Map.vue b/src/components/Map.vue index 82413b9..341bc78 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -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)) ); }