map-machine
map-machine copied to clipboard
Deal with edge case of zero length paths.
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.
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).
@RadostW Thank you for the PR. I'm really sorry for pushing into your fork's main.