[gnome-maps/wip/mlundblad/replace-champlain-transit] transitRouter: Stop using Champlain.BoundingBox




commit f584b12b47a3552490c38deb75aa1a36dc867723
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Apr 4 22:20:44 2021 +0200

    transitRouter: Stop using Champlain.BoundingBox
    
    Replace Champlain.BoundingBox with the replacement
    implemented in Maps to prepare for libshumate.

 src/transitRouter.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/transitRouter.js b/src/transitRouter.js
index e2a3e5ec..4bc4ceea 100644
--- a/src/transitRouter.js
+++ b/src/transitRouter.js
@@ -20,8 +20,8 @@
  */
 
 const GLib = imports.gi.GLib;
-const Champlain = imports.gi.Champlain;
 
+const BoundingBox = imports.boundingBox;
 const Service = imports.service;
 const TransitPlan = imports.transitPlan;
 const Utils = imports.utils;
@@ -168,10 +168,10 @@ var TransitRouter = class TransitRoute {
                     }
 
                     let [x1, y1, x2, y2] = bbox;
-                    let cbbox = new Champlain.BoundingBox({ bottom: x1,
-                                                            left: y1,
-                                                            top: x2,
-                                                            right: y2 });
+                    let cbbox = new BoundingBox.BoundingBox({ bottom: x1,
+                                                              left: y1,
+                                                              top: x2,
+                                                              right: y2 });
 
                     if (cbbox.covers(location.latitude,
                                      location.longitude)) {


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