From acc70208adaaef2ac1296bbea8a3a9f622088809 Mon Sep 17 00:00:00 2001 From: Jonas Danielsson Date: Tue, 16 Aug 2016 21:41:39 +0200 Subject: 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 deletion(-) diff --git a/src/mapSource.js b/src/mapSource.js index d7b82c45..f7f8df42 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 64dd6c77..45868e9a 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, -- cgit v1.2.1