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



commit 0605de9c48eda23214cef306d8d15e094bdec824
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 876dc90..f542025 100644
--- a/src/mapSource.js
+++ b/src/mapSource.js
@@ -148,3 +148,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]