Commit 3f256c58 authored by Jonas Danielsson's avatar Jonas Danielsson

mapView: Add instructionLayer after userLocationLayer

Otherwise the user location accuracy marker will block dragging
of the route markers.
parent 9181eac9
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment