[gnome-maps] mapView: Add instructionLayer after userLocationLayer



commit 3f256c58f36b55f0a2332602aadfe888c26f8ce6
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Wed Mar 11 19:33:29 2015 +0100

    mapView: Add instructionLayer after userLocationLayer
    
    Otherwise the user location accuracy marker will block dragging
    of the route markers.

 src/mapView.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index c9586b8..23a81c9 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -112,6 +112,10 @@ const MapView = new Lang.Class({
                                                blue: 255,
                                                green: 0,
                                                alpha: 100 });
+
+        this._userLocationLayer = new Champlain.MarkerLayer({ selection_mode: mode });
+        this.view.add_layer(this._userLocationLayer);
+
         this._routeLayer = new Champlain.PathLayer({ stroke_width: 5.0,
                                                      stroke_color: strokeColor });
         this.view.add_layer(this._routeLayer);
@@ -122,9 +126,6 @@ const MapView = new Lang.Class({
 
         this._instructionMarkerLayer = new Champlain.MarkerLayer({ selection_mode: mode });
         this.view.add_layer(this._instructionMarkerLayer);
-
-        this._userLocationLayer = new Champlain.MarkerLayer({ selection_mode: mode });
-        this.view.add_layer(this._userLocationLayer);
     },
 
     _connectRouteSignals: function() {


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