From 48367926c2c6ce9097a4f68b783f9ab90341c7fa Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sat, 4 Nov 2017 17:10:50 -0700 Subject: [PATCH] Decaffeinate config --- src/config.coffee | 41 ------------------------------------- src/config.js | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 41 deletions(-) delete mode 100644 src/config.coffee create mode 100644 src/config.js diff --git a/src/config.coffee b/src/config.coffee deleted file mode 100644 index 9267745..0000000 --- a/src/config.coffee +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = - language: "en" - - # TODO: adapt to osm2vectortiles successor openmaptiles v3) - # mapscii.me hosts the last available version, 2016-06-20 - source: "http://mapscii.me/" - - #source: __dirname+"/../mbtiles/regensburg.mbtiles" - - styleFile: __dirname+"/../styles/dark.json" - - initialZoom: null - maxZoom: 18 - zoomStep: 0.2 - - simplifyPolylines: false - - useBraille: true - - # Downloaded files get persisted in ~/.mapscii - persistDownloadedTiles: true - - tileRange: 14 - projectSize: 256 - - labelMargin: 5 - - layers: - housenum_label: margin: 4 - poi_label: cluster: true, margin: 5 - place_label: cluster: true - state_label: cluster: true - - input: process.stdin - output: process.stdout - - headless: false - - delimeter: "\n\r" - - poiMarker: "◉" \ No newline at end of file diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..b1af7a3 --- /dev/null +++ b/src/config.js @@ -0,0 +1,52 @@ +module.exports = { + language: 'en', + + // TODO: adapt to osm2vectortiles successor openmaptiles v3) + // mapscii.me hosts the last available version, 2016-06-20 + source: 'http://mapscii.me/', + + //source: __dirname+"/../mbtiles/regensburg.mbtiles", + + styleFile: __dirname+'/../styles/dark.json', + + initialZoom: null, + maxZoom: 18, + zoomStep: 0.2, + + simplifyPolylines: false, + + useBraille: true, + + // Downloaded files get persisted in ~/.mapscii + persistDownloadedTiles: true, + + tileRange: 14, + projectSize: 256, + + labelMargin: 5, + + layers: { + housenum_label: { + margin: 4 + }, + poi_label: { + cluster: true, + margin: 5, + }, + place_label: { + cluster: true, + }, + state_label: { + cluster: true, + }, + }, + + input: process.stdin, + output: process.stdout, + + headless: false, + + delimeter: '\n\r', + + poiMarker: '◉', +};