📚 adding simplifyPolylines to the configuration

This commit is contained in:
Michael Straßburger 2016-11-13 05:40:26 +01:00
parent 5f29780c7d
commit 26aa2450e1
2 changed files with 9 additions and 2 deletions

View File

@ -238,8 +238,10 @@ module.exports = class Renderer
if scaled.length < 2 if scaled.length < 2
return [] return []
#simplify scaled, .5, true if config.simplifyPolylines
scaled simplify scaled, .5, true
else
scaled
else else
scaled scaled

View File

@ -9,6 +9,11 @@ module.exports =
maxZoom: 18 maxZoom: 18
zoomStep: 0.2 zoomStep: 0.2
simplifyPolylines: false
# Downloaded files get persisted in ~/.mapscii
persistDownloadedTiles: true
tileRange: 14 tileRange: 14
projectSize: 256 projectSize: 256