map-machine icon indicating copy to clipboard operation
map-machine copied to clipboard

Deal with edge case of zero length paths.

Open RadostW opened this issue 3 years ago • 1 comments

When cropping larger OSM datasets sometimes paths with zero nodes are formed. Such paths break path -> svg code.

Checking for len < 2 resolves this problem.

RadostW avatar Jan 06 '23 16:01 RadostW

Checks had failed mostly because of style issues. The project uses Black style formatter. To apply Black style, one have to simply run

black -l 80 map_machine

with the Black installed (pip install black).

enzet avatar Jul 05 '23 17:07 enzet

@RadostW Thank you for the PR. I'm really sorry for pushing into your fork's main.

enzet avatar Nov 17 '25 09:11 enzet