[gnome-maps/wip/accuracy-circle: 2/5] mapView: Make user location selectable



commit bff424fdc12c17c172644ebc63e1f33983102ef6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Apr 13 19:33:30 2013 +0300

    mapView: Make user location selectable

 src/mapView.js      | 2 +-
 src/userLocation.js | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 0a047d2..cf17810 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -66,7 +66,7 @@ const MapView = new Lang.Class({
         this.view.add_layer(this._markerLayer);
 
         this._userLocationLayer = new Champlain.MarkerLayer();
-        this._userLocationLayer.set_selection_mode(Champlain.SelectionMode.NONE);
+        this._userLocationLayer.set_selection_mode(Champlain.SelectionMode.SINGLE);
         this.view.add_layer(this._userLocationLayer);
 
         this._factory = Champlain.MapSourceFactory.dup_default();
diff --git a/src/userLocation.js b/src/userLocation.js
index ee003e8..902ca10 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -43,7 +43,6 @@ const UserLocation = new Lang.Class({
         layer.remove_all();
 
         let locationMarker = new Champlain.CustomMarker();
-        locationMarker.set_reactive(false);
         locationMarker.set_location(this.latitude, this.longitude);
         // FIXME: Using deprecated function here cause I failed to get the same result
         //        with locationMarker.set_pivot_point(0.5, 0).


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