[gnome-maps] userLocation: Accuracy is radius, not diameter
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] userLocation: Accuracy is radius, not diameter
- Date: Sun, 14 Apr 2013 18:19:50 +0000 (UTC)
commit c511ac3c55fc3be76db9090510b88882a76ca280
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Apr 14 17:53:08 2013 +0300
userLocation: Accuracy is radius, not diameter
src/userLocation.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/userLocation.js b/src/userLocation.js
index fc89cb1..ee003e8 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -76,7 +76,7 @@ const UserLocation = new Lang.Class({
let metersPerPixel = source.get_meters_per_pixel(zoom,
this.latitude,
this.longitude);
- let size = this.accuracy / metersPerPixel;
+ let size = this.accuracy * 2 / metersPerPixel;
let viewWidth = this._view.get_width();
let viewHeight = this._view.get_height();
// Ensure we don't endup creating way too big texture/canvas,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]