diff --git a/.gitattributes b/.gitattributes index e9eefdb..99b8b36 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ +*.md -diff *.svg -diff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f570426 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +# Input files + +*.bz2 +*.osm +*.xml + +# Temporary files + +*.swp + +# Generated files + +*.png +*.pyc +*.svg + +# Test scheme files + +*.tm2 diff --git a/mapper.py b/mapper.py index 10a6afb..8c26d00 100644 --- a/mapper.py +++ b/mapper.py @@ -582,7 +582,7 @@ def draw_nodes(show_missed_tags=False, overlap=14): if overlap != 0: for shape in shapes: has_space = True - for p in points: + for p in points[-1000:]: if x + xxx - overlap <= p.x <= x + xxx + overlap and \ y - overlap <= p.y <= y + overlap: has_space = False @@ -608,10 +608,10 @@ icons = extract_icon.IconExtractor('icons.svg') #sys.exit(0) #draw_ways() -draw_nodes(show_missed_tags=True, overlap=12) +#draw_nodes(show_missed_tags=True, overlap=12) #draw_ways() -#draw_nodes() +draw_nodes() if flinger.space.x == 0: output_file.rect(0, 0, w, flinger.space.y, color='FFFFFF')