Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add path simplification option #3

Open
w8r opened this issue Sep 19, 2016 · 1 comment
Open

Add path simplification option #3

w8r opened this issue Sep 19, 2016 · 1 comment
Assignees

Comments

@w8r
Copy link
Owner

w8r commented Sep 19, 2016

through @mourner's Douglas-Peucker simplification algorithm
read it from styles as a parameter
also maybe add method for that

@w8r w8r self-assigned this Sep 19, 2016
@blanchg
Copy link

blanchg commented Nov 20, 2020

All you need to do is import @turfjs/simplify then do it on the input to the render

features = simplify(features, { tolerance: 0.02});
let svg = renderer.type('type').render(features);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants