[gnome-maps] Zoom 1 level less on city-level accuracy



commit efe51e70228e9a25f5d616f1440866c04c9dde46
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Aug 6 17:42:03 2013 +0200

    Zoom 1 level less on city-level accuracy
    
    This is to ensure that accuracy circle is within the bounds of view.

 src/mapLocation.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mapLocation.js b/src/mapLocation.js
index 3c731fa..16f234b 100644
--- a/src/mapLocation.js
+++ b/src/mapLocation.js
@@ -95,11 +95,11 @@ const MapLocation = new Lang.Class({
     zoomToFit: function() {
         let zoom;
         if (this.accuracy === Geocode.LOCATION_ACCURACY_UNKNOWN)
-            zoom = 12; // Accuracy is usually city-level when unknown
+            zoom = 11; // Accuracy is usually city-level when unknown
         else if (this.accuracy <= Geocode.LOCATION_ACCURACY_STREET)
             zoom = 16;
         else if (this.accuracy <= Geocode.LOCATION_ACCURACY_CITY)
-            zoom = 12;
+            zoom = 11;
         else if (this.accuracy <= Geocode.LOCATION_ACCURACY_REGION)
             zoom = 10;
         else if (this.accuracy <= Geocode.LOCATION_ACCURACY_COUNTRY)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]