mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-02 10:51:57 +02:00
Remove tags for missing icons.
This commit is contained in:
parent
15683ab9f3
commit
4634c38bc9
3 changed files with 1 additions and 12 deletions
|
@ -273,8 +273,6 @@ tags:
|
|||
icon: [muslim]
|
||||
- tags: {amenity: place_of_worship, religion: buddhist}
|
||||
icon: [buddhist]
|
||||
- tags: {amenity: place_of_worship, religion: hindu}
|
||||
icon: [hindu]
|
||||
|
||||
# Additions for buildings
|
||||
|
||||
|
@ -391,10 +389,6 @@ tags:
|
|||
add_icon: [no_traffic_signals]
|
||||
- tags: {highway: crossing, crossing: traffic_signals}
|
||||
add_icon: [traffic_signals]
|
||||
- tags: {highway: mini_roundabout}
|
||||
icon: [mini_roundabout]
|
||||
- tags: {highway: turning_circle}
|
||||
icon: [turning_circle]
|
||||
- tags: {highway: traffic_signals}
|
||||
icon: [traffic_signals]
|
||||
- tags: {public_transport: stop_position}
|
||||
|
@ -452,8 +446,6 @@ tags:
|
|||
icon: [lift_gate]
|
||||
- tags: {barrier: turnstile}
|
||||
icon: [turnstile]
|
||||
- tags: {barrier: stile}
|
||||
icon: [stile]
|
||||
- tags: {barrier: entrance}
|
||||
icon: [entrance]
|
||||
|
||||
|
@ -480,8 +472,6 @@ tags:
|
|||
add_icon: [clockwise]
|
||||
- tags: {direction: contrclockwise}
|
||||
add_icon: [contrclockwise]
|
||||
- tags: {smoking: 'no'}
|
||||
add_icon: [no_smoking]
|
||||
- tags: {atm: 'yes'}
|
||||
add_icon: [atm]
|
||||
- tags: {tactile_paving: 'yes'}
|
||||
|
|
|
@ -69,3 +69,4 @@ class IconExtractor:
|
|||
if id_ == "small":
|
||||
return "M 6,6 L 6,8 8,8 8,6 z", 0, 0
|
||||
ui.error(f"no such icon ID {id_}")
|
||||
return "M 4,4 L 4,10 10,10 10,4 z", 0, 0
|
||||
|
|
2
test.py
2
test.py
|
@ -49,7 +49,6 @@ def test_icons():
|
|||
to_draw.append(set([icon] + [icon2] + [icon3] + element['over_icon']))
|
||||
|
||||
for icons_to_draw in to_draw:
|
||||
drawed = False
|
||||
icon_set = {'icons': []}
|
||||
for icon in icons_to_draw:
|
||||
path, xx, yy = extracter.get_path(icon)
|
||||
|
@ -57,4 +56,3 @@ def test_icons():
|
|||
icon_set['icons'].append({'path': path,
|
||||
'x': (- 8.0 - xx * 16),
|
||||
'y': (- 8.0 - yy * 16)})
|
||||
drawed = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue