[gnome-maps/wip/user-location-toggle: 3/4] mapView: Add a method to go to user's location
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/user-location-toggle: 3/4] mapView: Add a method to go to user's location
- Date: Tue, 16 Apr 2013 01:07:12 +0000 (UTC)
commit 639d57efb0f82f9f7586e1bbaae36699154f277b
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]