📚 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,7 +238,9 @@ module.exports = class Renderer
if scaled.length < 2
return []
#simplify scaled, .5, true
if config.simplifyPolylines
simplify scaled, .5, true
else
scaled
else
scaled

View File

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