[gnome-maps/wip/jonasdn/service: 2/3] Add print tile service



commit c264b6232eec8facbf49d9bf227f7e99c225aa3d
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Aug 16 21:41:39 2016 +0200

    Add print tile service
    
    Use the print style from the service.json file for the print
    source. Right now it is same as street style. But gives us the
    possibility of having a special print style later.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769352

 src/mapSource.js   |    4 ++++
 src/printLayout.js |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/mapSource.js b/src/mapSource.js
index d7b82c4..f7f8df4 100644
--- a/src/mapSource.js
+++ b/src/mapSource.js
@@ -150,3 +150,7 @@ function createAerialSource() {
 function createStreetSource() {
     return _createCachedSource(_getTileService().street);
 }
+
+function createPrintSource() {
+    return _createCachedSource(_getTileService().print);
+}
diff --git a/src/printLayout.js b/src/printLayout.js
index 64dd6c7..45868e9 100644
--- a/src/printLayout.js
+++ b/src/printLayout.js
@@ -149,7 +149,7 @@ const PrintLayout = new Lang.Class({
         let pageNum = this.numPages - 1;
         let x = this._cursorX;
         let y = this._cursorY;
-        let mapSource = MapSource.createStreetSource();
+        let mapSource = MapSource.createPrintSource();
         let locations = [];
         let markerLayer = new Champlain.MarkerLayer();
         let view = new Champlain.View({ width: width,


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