diff options
author | Amisha Singla <amishas157@gmail.com> | 2016-02-15 22:08:15 +0530 |
---|---|---|
committer | Jonas Danielsson <jonas@threetimestwo.org> | 2016-02-16 10:09:54 +0100 |
commit | ac88800dccbbc836b6e7a7bd6e5ee20fb225a997 (patch) | |
tree | 78d32753cb97e142b5f6858c69d3b987ca073a13 /src/route.js | |
parent | c6308b145131a135f8d061914426a5c023249a08 (diff) | |
download | gnome-maps-ac88800dccbbc836b6e7a7bd6e5ee20fb225a997.tar.gz |
Add Print Route Feature
Print Operation class is added to draw the cairo surfaces given to it.
Print Layout acts as a tool-box which sub-classes like short Route
layout , long route layout use to layout the surfaces as per the
respective requirements of rendering various surfaces.
GUI is added to give users an ability to access print Route feature.
https://bugzilla.gnome.org/show_bug.cgi?id=746790
Diffstat (limited to 'src/route.js')
-rw-r--r-- | src/route.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/route.js b/src/route.js index 61df3aef..2b4656d2 100644 --- a/src/route.js +++ b/src/route.js @@ -53,7 +53,7 @@ const Route = new Lang.Class({ this.turnPoints = turnPoints; this.distance = distance; this.time = time; - this.bbox = bbox || this._createBBox(path); + this.bbox = bbox || this.createBBox(path); this.emit('update'); }, @@ -67,7 +67,7 @@ const Route = new Lang.Class({ this.emit('reset'); }, - _createBBox: function(coordinates) { + createBBox: function(coordinates) { let bbox = new Champlain.BoundingBox(); coordinates.forEach(function({ latitude, longitude }) { bbox.extend(latitude, longitude); |