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



commit da74fe4b08ed2f5d8120c441e92fb78089809bc3
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]