[gnome-maps] Reduce zoom-level for city-level accuracy
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Reduce zoom-level for city-level accuracy
- Date: Wed, 10 Apr 2013 15:13:31 +0000 (UTC)
commit b81c9d501ddbfa2f8b3935cf1b6ca1d12d15d5ac
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Apr 10 18:10:39 2013 +0300
Reduce zoom-level for city-level accuracy
This would help for cases where geolocation is slightly wrong.
src/utils.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index 6ed2276..7173229 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -83,11 +83,11 @@ function initActions(actionMap, simpleActionEntries) {
// accuracy: double value in meters
function getZoomLevelForAccuracy(accuracy) {
if (accuracy == Geocode.LOCATION_ACCURACY_UNKNOWN)
- return 13; // Accuracy is usually city-level when unknown
+ return 12; // Accuracy is usually city-level when unknown
else if (accuracy <= Geocode.LOCATION_ACCURACY_STREET)
return 16;
else if (accuracy <= Geocode.LOCATION_ACCURACY_CITY)
- return 13;
+ return 12;
else if (accuracy <= Geocode.LOCATION_ACCURACY_REGION)
return 10;
else if (accuracy <= Geocode.LOCATION_ACCURACY_COUNTRY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]