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