[gnome-maps/wip/mlundblad/transit-plugin-resrobot: 5/7] transitPlan: Add additional setter on Leg



commit 88635a9f43ff7c59566fca8cb50751886994de59
Author: Marcus Lundblad <ml update uu se>
Date:   Sat Oct 12 15:46:37 2019 +0200

    transitPlan: Add additional setter on Leg
    
    Add setters for distance, walkingInstructions,
    and polyline.

 src/transitPlan.js | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 909e7211..7f3d27db 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -551,6 +551,10 @@ var Leg = class Leg {
         return this._polyline;
     }
 
+    set polyline(polyline) {
+        this._polyline = polyline;
+    }
+
     get fromCoordinate() {
         return this._fromCoordinate;
     }
@@ -587,6 +591,10 @@ var Leg = class Leg {
         return this._distance;
     }
 
+    set distance(distance) {
+        this._distance = distance;
+    }
+
     get duration() {
         return this._duration;
     }


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