diff options
author | Marcus Lundblad <ml@update.uu.se> | 2021-04-04 22:20:44 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2021-04-04 22:20:44 +0200 |
commit | f584b12b47a3552490c38deb75aa1a36dc867723 (patch) | |
tree | b1b7851c4a117194923bb01ceb44eb23c7fe975f /src | |
parent | d96d5776d059aa63c68e26455a88806bf2f7180b (diff) | |
download | gnome-maps-f584b12b47a3552490c38deb75aa1a36dc867723.tar.gz |
transitRouter: Stop using Champlain.BoundingBoxwip/mlundblad/replace-champlain-transit
Replace Champlain.BoundingBox with the replacement
implemented in Maps to prepare for libshumate.
Diffstat (limited to 'src')
-rw-r--r-- | src/transitRouter.js | 10 |
1 files 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)) { |