[gnome-maps] mapView: Bring back commented-out code to set route layer visible



commit 8746ca0f7738020d3a9b691dd2794e6efc2e098d
Author: Marcus Lundblad <ml dfupdate se>
Date:   Thu Sep 22 22:29:10 2022 +0200

    mapView: Bring back commented-out code to set route layer visible
    
    This code, setting the visibility of the route and instruction
    layers on show/hide of a route had been left commented-out from
    the GTK4 port.

 src/mapView.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 14b11538..e6c3c96e 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -107,9 +107,8 @@ export class MapView extends Gtk.Overlay {
         let isValid = Application.routeQuery.isValid();
 
         this._routingOpen = value && isValid;
-        // TODO: bring it back when the layers are working
-        //this._routeLayers.forEach((routeLayer) => routeLayer.visible = value && isValid);
-        //this._instructionMarkerLayer.visible = value && isValid;
+        this._routeLayers.forEach((routeLayer) => routeLayer.visible = value && isValid);
+        this._instructionMarkerLayer.visible = value && isValid;
         if (!value)
             this.routeShowing = false;
         this.notify('routingOpen');


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