mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 23:53:08 +01:00
📚 adding simplifyPolylines to the configuration
This commit is contained in:
parent
5f29780c7d
commit
26aa2450e1
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user