geojson2svg icon indicating copy to clipboard operation
geojson2svg copied to clipboard

Add path simplification option

Open w8r opened this issue 8 years ago • 1 comments

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

w8r avatar Sep 19 '16 22:09 w8r

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);

blanchg avatar Nov 20 '20 02:11 blanchg