[gnome-maps] mapView: Add a method to go to user's location



commit c2f2d99a237540b87b85e34ab0e0a49fa2a5b00e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 16 04:04:45 2013 +0300

    mapView: Add a method to go to user's location

 src/mapView.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/mapView.js b/src/mapView.js
index e759405..f2c939f 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -129,6 +129,10 @@ const MapView = new Lang.Class({
         this.view.ensure_visible(bbox, true);
     },
 
+    gotoUserLocation: function(animate) {
+        this._userLocation.goTo(animate);
+    },
+
     _showUserLocation: function() {
         let lastLocation = Application.settings.get_value('last-location');
         if (lastLocation.n_children() >= 3) {


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