[gnome-maps/wip/refactor: 2/5] MapView: MapMinZoom -> MinZoom



commit 1ea1e0e00711468e3c8c19bac177df7ae7ded032
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sun Aug 17 20:07:47 2014 +0200

    MapView: MapMinZoom -> MinZoom
    
    The map prefix is implied by this being inside MapView.

 src/mapView.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 0edcc33..3e7ea4a 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -45,7 +45,7 @@ const MapType = {
     AERIAL:  Champlain.MAP_SOURCE_OSM_AERIAL_MAP
 };
 
-const MapMinZoom = 2;
+const MinZoom = 2;
 
 const MapView = new Lang.Class({
     Name: 'MapView',
@@ -70,7 +70,7 @@ const MapView = new Lang.Class({
     _initView: function() {
         let view = this.get_view();
         view.zoom_level = 3;
-        view.min_zoom_level = MapMinZoom;
+        view.min_zoom_level = MinZoom;
         view.goto_animation_mode = Clutter.AnimationMode.EASE_IN_OUT_CUBIC;
         view.reactive = true;
         view.kinetic_mode = true;
@@ -79,8 +79,8 @@ const MapView = new Lang.Class({
         view.connect('notify::longitude', this._onViewMoved.bind(this));
         // switching map type will set view min-zoom-level from map source
         view.connect('notify::min-zoom-level', (function() {
-            if (view.min_zoom_level < MapMinZoom) {
-                view.min_zoom_level = MapMinZoom;
+            if (view.min_zoom_level < MinZoom) {
+                view.min_zoom_level = MinZoom;
             }
         }).bind(this));
         return view;


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