diff --git a/icons.svg b/icons.svg
index 2537ab9..c9f217a 100644
--- a/icons.svg
+++ b/icons.svg
@@ -13,7 +13,7 @@
height="600px"
id="svg2987"
version="1.1"
- inkscape:version="0.48.5 r10040"
+ inkscape:version="0.48.3.1 r9886"
sodipodi:docname="icons.svg">
@@ -24,21 +24,21 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
- inkscape:zoom="1"
- inkscape:cx="254.95084"
- inkscape:cy="437.73267"
+ inkscape:zoom="32"
+ inkscape:cx="54.935514"
+ inkscape:cy="557.22556"
inkscape:current-layer="layer1"
inkscape:document-units="px"
- showgrid="false"
+ showgrid="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:object-paths="true"
inkscape:snap-bbox="true"
- inkscape:window-width="1440"
- inkscape:window-height="851"
- inkscape:window-x="0"
- inkscape:window-y="0"
- inkscape:window-maximized="1">
+ inkscape:window-width="1018"
+ inkscape:window-height="810"
+ inkscape:window-x="93"
+ inkscape:window-y="154"
+ inkscape:window-maximized="0">
@@ -745,13 +745,15 @@
inkscape:label="#rect3164" />
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="sccssssscccsssscssccc" />
+ d="m 277.5,97 c -0.82843,0 -1.5,0.671573 -1.5,1.5 0,0.655838 0.41359,1.20241 1,1.40625 l 0,6.59375 c 0,1.38071 1.11929,2.5 2.5,2.5 1.38071,0 2.5,-1.11929 2.5,-2.5 l 1.5,0 -2,-2.5 -2,2.5 1.5,0 c 0,0.82843 -0.67157,1.5 -1.5,1.5 -0.82843,0 -1.5,-0.67157 -1.5,-1.5 l 0,-6.59375 c 0.58641,-0.20384 1,-0.750412 1,-1.40625 0,-0.828427 -0.67157,-1.5 -1.5,-1.5 z m 0,1 c 0.27614,0 0.5,0.223858 0.5,0.5 0,0.276142 -0.22386,0.5 -0.5,0.5 -0.27614,0 -0.5,-0.223858 -0.5,-0.5 0,-0.276142 0.22386,-0.5 0.5,-0.5 z"
+ id="fishing"
+ inkscape:connector-curvature="0" />
@@ -838,7 +840,7 @@
inkscape:connector-curvature="0" />
@@ -1194,17 +1196,17 @@
style="fill:#808080"
inkscape:connector-curvature="0"
id="path4136"
- d="m 184,84 c -0.554,0 -1,0.446 -1,1 -0.554,0 -1,0.446 -1,1 l 0,3 c 0,0.554 0.446,1 1,1 0,0.554 0.446,1 1,1 l 0.5625,0 0,3 0.875,0 0,-3 0.5625,0 c 0.554,0 1,-0.446 1,-1 0.554,0 1,-0.446 1,-1 l 0,-3 c 0,-0.554 -0.446,-1 -1,-1 0,-0.554 -0.446,-1 -1,-1 l -2,0 z" />
+ d="m 200,84 c -0.554,0 -1,0.446 -1,1 -0.554,0 -1,0.446 -1,1 l 0,3 c 0,0.554 0.446,1 1,1 0,0.554 0.446,1 1,1 l 0.5625,0 0,3 0.875,0 0,-3 0.5625,0 c 0.554,0 1,-0.446 1,-1 0.554,0 1,-0.446 1,-1 l 0,-3 c 0,-0.554 -0.446,-1 -1,-1 0,-0.554 -0.446,-1 -1,-1 l -2,0 z" />
+ d="m 215,84 c -0.554,0 -1,0.446 -1,1 -0.554,0 -1,0.446 -1,1 l 0,3 c 0,0.554 0.446,1 1,1 0,0.554 0.446,1 1,1 l 0.5625,0 0,3 0.875,0 0,-3 0.5625,0 c 0.554,0 1,-0.446 1,-1 0.554,0 1,-0.446 1,-1 l 0,-3 c 0,-0.554 -0.446,-1 -1,-1 0,-0.554 -0.446,-1 -1,-1 l -2,0 z" />
+ d="m 145.5,101 c -0.277,0 -0.5,0.223 -0.5,0.5 l 0,7 c 0,0.277 0.223,0.5 0.5,0.5 l 1,0 c 0.277,0 0.5,-0.223 0.5,-0.5 l 0,-7 c 0,-0.277 -0.223,-0.5 -0.5,-0.5 l -1,0 z m 11,0 c -0.277,0 -0.5,0.223 -0.5,0.5 l 0,7 c 0,0.277 0.223,0.5 0.5,0.5 l 1,0 c 0.277,0 0.5,-0.223 0.5,-0.5 l 0,-7 c 0,-0.277 -0.223,-0.5 -0.5,-0.5 l -1,0 z m -8,1 c -0.277,0 -0.5,0.223 -0.5,0.5 l 0,3 0,2 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 l 0,-1.5 1.5,0 c 0.277,0 0.5,-0.223 0.5,-0.5 l 0,-3 c 0,-0.277 -0.223,-0.5 -0.5,-0.5 l -2,0 z m 4,0 c -0.277,0 -0.5,0.223 -0.5,0.5 l 0,3 c 0,0.277 0.223,0.5 0.5,0.5 l 1.5,0 0,1.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 l 0,-2 0,-3 c 0,-0.277 -0.223,-0.5 -0.5,-0.5 l -2,0 z"
+ id="turnstile"
+ inkscape:connector-curvature="0" />
@@ -2015,7 +2018,7 @@
id="rect4439"
width="4"
height="6"
- x="214"
+ x="230"
y="82"
rx="1"
ry="1" />
@@ -2024,7 +2027,7 @@
id="rect4445"
width="6"
height="7"
- x="213"
+ x="229"
y="83"
rx="1"
ry="1" />
@@ -2033,118 +2036,118 @@
id="rect4447"
width="8"
height="4"
- x="212"
+ x="228"
y="85"
rx="1"
ry="1" />
@@ -2210,7 +2213,7 @@
inkscape:connector-curvature="0" />
@@ -2433,7 +2436,7 @@
@@ -2921,29 +2924,29 @@
d="m 292,130 0,10 1,0 0,-9 6,0 0,9 1,0 0,-10 -8,0 z m 6,2 -4,2 0,8 4,-2 0,-8 z"
style="fill:#d40000;fill-opacity:1;stroke:none" />
+ inkscape:label="#rect3478"
+ inkscape:connector-curvature="0" />
+ ry="2"
+ rx="2" />
@@ -3274,11 +3279,11 @@
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path3500"
- d="m 103.5,84.5 c -7,0 0,-7 0,0 z"
+ d="m 119.5,84.5 c -7,0 0,-7 0,0 z"
style="fill:none;stroke:#d4aa00;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
@@ -3297,17 +3302,18 @@
inkscape:connector-curvature="0"
inkscape:label="#path3180"
id="path4309"
- d="m 261,83 0,7.5 c 0,1.38071 1.11929,2.5 2.5,2.5 1.38071,0 2.5,-1.11929 2.5,-2.5 l 1.5,0 -2,-2.5 -2,2.5 1.5,0 c 0,0.82843 -0.67157,1.5 -1.5,1.5 -0.82843,0 -1.5,-0.67157 -1.5,-1.5 l 0,-7.5 z"
+ d="m 277,83 0,7.5 c 0,1.38071 1.11929,2.5 2.5,2.5 1.38071,0 2.5,-1.11929 2.5,-2.5 l 1.5,0 -2,-2.5 -2,2.5 1.5,0 c 0,0.82843 -0.67157,1.5 -1.5,1.5 -0.82843,0 -1.5,-0.67157 -1.5,-1.5 l 0,-7.5 z"
style="fill:#666666;stroke:none" />
+ d="m 263,82.5 a 1.5,1.5 0 1 1 -3,0 1.5,1.5 0 1 1 3,0 z"
+ transform="translate(16,0)" />
+ d="m 262,82.5 a 0.5,0.5 0 1 1 -1,0 0.5,0.5 0 1 1 1,0 z"
+ transform="translate(16,0)" />
+ d="m 314,88 a 2,2 0 1 1 -4,0 2,2 0 1 1 4,0 z"
+ transform="translate(16,0)" />
+ d="m 322,101 0,6 12,0 0,-6 -12,0 z m 5.5,1 0.5,0 0.5,0 c 0.831,0 1.5,0.669 1.5,1.5 l 0,0.5 0,0.5 c 0,0.831 -0.669,1.5 -1.5,1.5 l -0.5,0 -0.5,0 c -0.831,0 -1.5,-0.669 -1.5,-1.5 l 0,-0.5 0,-0.5 c 0,-0.831 0.669,-1.5 1.5,-1.5 z"
+ id="money"
+ inkscape:connector-curvature="0" />
+ d="m 354,100 0,3 2,0 0,-1 -1,0 0,-1 10,0 0,1 -1,0 0,1 2,0 0,-3 -12,0 z m 3,2 0,9 6,0 0,-9 -6,0 z m 2.5,1 0.5,0 0.5,0 c 0.831,0 1.5,0.669 1.5,1.5 l 0,0.5 0,0.5 c 0,0.831 -0.669,1.5 -1.5,1.5 l -0.5,0 -0.5,0 c -0.831,0 -1.5,-0.669 -1.5,-1.5 l 0,-0.5 0,-0.5 c 0,-0.831 0.669,-1.5 1.5,-1.5 z"
+ id="atm"
+ inkscape:connector-curvature="0" />
+ style="fill:#ffd5d5;stroke:none"
+ rx="1.5" />
+ ry="1"
+ rx="1" />
+ transform="matrix(0,1,-1,0,0,0)"
+ rx="1" />
+ inkscape:label="#rect4460"
+ inkscape:connector-curvature="0" />
+ transform="translate(15,-14)" />
+ inkscape:label="#path4477"
+ inkscape:connector-curvature="0" />
+ inkscape:label="#path4508"
+ inkscape:connector-curvature="0" />
+ inkscape:label="#path3575"
+ inkscape:connector-curvature="0" />
+ inkscape:label="#rect4443"
+ inkscape:connector-curvature="0"
+ sodipodi:nodetypes="ssssssssssscccccccscccccssssccc" />
+
+
+
+
+
+
+
+
+
+
diff --git a/process.py b/process.py
index 3744130..3ee0db5 100644
--- a/process.py
+++ b/process.py
@@ -1,4 +1,5 @@
import copy
+import re
def get_color(color, scheme):
if color in scheme['colors']:
diff --git a/tags.yml b/tags.yml
index 30619da..951e8e0 100644
--- a/tags.yml
+++ b/tags.yml
@@ -1,29 +1,5 @@
colors:
- # Color names
-
- 'black': '000000'
- 'blue': '2233AA'
- 'brown': '964B00'
- 'darkgreen': '446722'
- 'gold': 'FFD700' # Wikipedia
- 'gray': '888888'
- 'green': '4E9A06'
- 'grey': '888888'
- 'lightblue': '2288CC'
- 'slate_blue': '2288CC' # The same
- 'lightgreen': '73D216'
- 'maroon': '800000'
- 'orange': 'FCAF3E'
- 'pink': '9D52A9'
- 'purple': '9D52A9'
- 'red': 'CC0000'
- 'silver': 'AAAAAA'
- 'tan': 'D2B48C' # Wikipedia
- 'violet': '75507B'
- 'white': 'FFFFFF'
- 'yellow': 'EDD400'
-
# Entity
'background': 'EEEEEE'
@@ -39,71 +15,122 @@ colors:
'water_border': '6688BB'
'wood': 'B8CC84'
+ # Colors not in W3C
+
+ 'rose': 'FF007F' # Wikipedia
+ 'slate_blue': '6A5ACD' # W3C slateblue
+
tags:
+ # No draw
+
+- tags: {type: multipolygon}
+ draw: false
- tags: {place: quarter}
draw: false
- tags: {building: 'yes'}
draw: false
+
+ # Street amenity
+
+- tags: {amenity: atm}
+ icon: [atm]
- tags: {amenity: bench}
icon: [bench]
- tags: {amenity: bench, backrest: 'yes'}
icon: [bench_backrest]
- tags: {amenity: bench, backrest: 'no'}
icon: [bench_no_backrest]
+- tags: {amenity: clock}
+ icon: [clock]
+- tags: {amenity: cinema}
+ icon: [film]
+- tags: {highway: street_lamp}
+ icon: [street_lamp]
+- tags: {amenity: waste_basket}
+ icon: [waste_basket]
+- tags: {amenity: telephone}
+ icon: [telephone]
+- tags: {emergency: phone}
+ icon: [sos_phone]
+- tags: {amenity: fountain}
+ icon: [fountain]
+ color: water_border
+- tags: {amenity: toilets}
+ icon: [toilets]
+- tags: {amenity: post_box}
+ icon: [letter]
+- tags: {amenity: prison}
+ icon: [prison]
+- tags: {man_made: pole}
+ icon: [pole]
+- tags: {power: pole}
+ icon: [pole]
+- tags: {power: tower}
+ icon: [power_tower]
+- tags: {man_made: pole, highway: street_lamp}
+ icon: [pole_lamp]
+- tags: {man_made: flagpole}
+ icon: [flagpole]
+
- tags: {amenity: bicycle_parking}
icon: [bicycle_parking]
+- tags: {amenity: parking}
+ icon: [parking]
+
+ # Eating and entertainment
+
- tags: {amenity: cafe}
icon: [cafe]
- tags: {amenity: nightclub}
icon: [night_club]
-- tags: {amenity: waste_basket}
- icon: [waste_basket]
-- tags: {amenity: clinic}
- icon: [clinic]
- tags: {amenity: restaurant}
icon: [restaurant]
- tags: {amenity: restaurant;bar}
icon: [restaurant]
add_icon: [bar]
-- tags: {amenity: pharmacy}
- icon: [pharmacy]
-- tags: {amenity: post_box}
- icon: [letter]
- tags: {amenity: drinking_water}
icon: [drinking_water]
-- tags: {amenity: toilets}
- icon: [toilets]
-- tags: {amenity: telephone}
- icon: [telephone]
- tags: {amenity: theatre}
icon: [theatre]
- tags: {amenity: bar}
icon: [bar]
-- tags: {amenity: bank}
- icon: [money]
- tags: {amenity: pub}
icon: [beer]
+- tags: {amenity: fast_food}
+ icon: [fast_food]
+- tags: {amenity: '*', karaoke: 'yes'}
+ add_icon: [microphone]
+
+ # Other buildings
+
+- tags: {building: apartments}
+ icon: [apartments]
+- tags: {tourism: hotel}
+ icon: [hotel]
+- tags: {tourism: hostel}
+ icon: [hostel]
+- tags: {tourism: motel} # Tourism?
+ icon: [motel]
+- tags: {amenity: clinic}
+ icon: [clinic]
+- tags: {amenity: bank}
+ icon: [money]
- tags: {amenity: kindergarten}
icon: [kindergarten]
- tags: {amenity: post_office}
icon: [letter]
-- tags: {amenity: fast_food}
- icon: [fast_food]
-- tags: {amenity: fountain}
- icon: [fountain]
- color: water_border
-- tags: {amenity: '*', karaoke: 'yes'}
- add_icon: [microphone]
# Shop
+- tags: {amenity: pharmacy}
+ icon: [pharmacy]
- tags: {amenity: shop, shop: fishing}
icon: [fishing]
- tags: {shop: clothes}
icon: [shop_clothes]
- tags: {amenity: shop, shop: clothes}
- icon: [clothes]
+ icon: [shop_clothes]
- tags: {shop: bakery}
icon: [cupcake]
- tags: {shop: convenience}
@@ -112,8 +139,6 @@ tags:
icon: [shop_convenience]
- tags: {building: store}
icon: [shop_convenience]
-- tags: {building: apartments}
- icon: [apartments]
- tags: {amenity: shop, shop: kiosk}
icon: [kiosk]
- tags: {shop: gift}
@@ -123,12 +148,20 @@ tags:
- tags: {amenity: place_of_worship, religion: christian}
icon: [christian]
+- tags:
+ amenity: place_of_worship
+ religion: christian
+ denomination: russian_orthodox
+ icon: [orthodox]
- tags: {amenity: place_of_worship, religion: muslim}
icon: [muslim]
- tags: {amenity: place_of_worship, religion: buddhist}
icon: [buddhist]
- tags: {amenity: place_of_worship, religion: hindu}
icon: [hindu]
+
+ # Additions for buildings
+
- tags: {building: '*', 'roof:material': metal}
add_icon: [metal_roof]
@@ -165,21 +198,42 @@ tags:
icon: [main_entrance]
- tags: {entrance: staircase}
icon: [staircase]
-- tags: {railway: subway_entrance}
- icon: [train]
-- tags: {railway: subway_entrance, entrance: 'yes'}
- icon: [train]
+
+ # Transport
- tags: {highway: bus_stop}
icon: [bus_stop]
add_icon: [bus]
+- tags: {railway: station}
+ icon: [train]
+- tags: {railway: station, station: subway, transport: subway}
+ icon: [train]
+- tags: {railway: subway_entrance}
+ icon: [train]
+- tags: {railway: subway_entrance, entrance: 'yes'}
+ icon: [train]
+- tags: {bus: 'yes'}
+ add_icon: [bus]
+- tags: {trolleybus: 'yes'}
+ add_icon: [trolleybus]
+- tags: {railway: tram_station}
+ icon: [tram]
+- tags: {railway: tram_stop}
+ icon: [tram]
- tags: {highway: bus_stop, shelter: 'yes'}
icon: [bus_stop_sign]
under_icon: [bus_stop_sign]
+ with_icon: [bus_stop_bench]
over_icon: [bus_stop_shelter]
- tags: {highway: bus_stop, bench: 'yes'}
under_icon: [bus_stop_sign]
+ with_icon: [bus_stop_shelter]
over_icon: [bus_stop_bench]
+- tags: {public_transport: platform}
+ icon: [railway_platform]
+
+ # Road signs
+
- tags: {highway: crossing}
icon: [crossing]
- tags: {highway: crossing, crossing: zebra}
@@ -196,24 +250,44 @@ tags:
icon: [turning_circle]
- tags: {highway: traffic_signals}
icon: [traffic_signals]
+- tags: {public_transport: stop_position}
+ icon: [bus_stop]
+- tags: {crossing_ref: toucan}
+ icon: [toucan_crossing]
- tags: {traffic_calming: bump}
icon: [bump]
-- tags: {highway: street_lamp}
- icon: [street_lamp]
-- tags: {historic: memorial}
+- tags: {sloped_curb: yes}
+ icon: [lowered_kerb]
+- tags: {kerb: lowered}
+ icon: [lowered_kerb]
+- tags: {traffic_calming: cushion}
+ icon: [traffic_cushion]
+
+ # Tourism
+
+- tags: {historic: memorial} # Before memorial:*
icon: [memorial]
- tags: {historic: memorial, memorial: statue}
icon: [statue]
+- tags: {historic: memorial, memorial: plaque}
+ icon: [plaque]
+- tags: {historic: tomb} # Before tomb:*
+ icon: [tomb]
+- tags: {historic: tomb, tomb: mausoleum}
+ icon: [mausoleum]
- tags: {tourism: artwork, artwork_type: statue}
icon: [statue]
- tags: {tourism: artwork, artwork_type: sculpture}
icon: [statue]
-- tags: {historic: memorial, memorial: plaque}
- icon: [plaque]
-- tags: {historic: tomb}
- icon: [tomb]
-- tags: {historic: tomb, tomb: mausoleum}
- icon: [mausoleum]
+- tags: {tourism: attraction} # Before attraction:*
+ icon: [attraction]
+- tags: {tourism: attraction, attraction: amusement_ride}
+ icon: [amusement_ride]
+- tags: {tourism: gallery}
+ icon: [picture]
+
+ # Barrier
+
- tags: {barrier: gate}
icon: [gate]
- tags: {barrier: bollard}
@@ -224,30 +298,10 @@ tags:
icon: [turnstile]
- tags: {barrier: stile}
icon: [stile]
-- tags: {man_made: pole}
- icon: [pole]
-- tags: {power: pole}
- icon: [pole]
-- tags: {power: tower}
- icon: [power_tower]
-- tags: {man_made: pole, highway: street_lamp}
- icon: [pole_lamp]
-- tags: {man_made: flagpole}
- icon: [flagpole]
-- tags: {tourism: attraction}
- icon: [attraction]
-- tags: {tourism: attraction, attraction: amusement_ride}
- icon: [amusement_ride]
-- tags: {public_transport: platform}
- icon: [railway_platform]
- tags: {barrier: entrance}
icon: [entrance]
-- tags: {amenity: atm}
- icon: [atm]
-- tags: {public_transport: stop_position}
- icon: [bus_stop]
-- tags: {crossing_ref: toucan}
- icon: [toucan_crossing]
+
+ # Additions for everything
- tags: {foot: 'yes'}
add_icon: [foot]
@@ -260,14 +314,10 @@ tags:
- tags: {internet_access: wlan, 'internet_access:fee': 'no'}
add_icon: [free_wlan]
- tags: {internet_access: wlan}
- no_tags: {'internet_access:fee'}
+ no_tags: ['internet_access:fee']
add_icon: [wlan]
- tags: {material: wood}
add_icon: [wood]
-- tags: {bus: 'yes'}
- add_icon: [bus]
-- tags: {trolleybus: 'yes'}
- add_icon: [trolleybus]
- tags: {access: private}
add_icon: [private]
- tags: {direction: clockwise}
@@ -276,3 +326,5 @@ tags:
add_icon: [contrclockwise]
- tags: {smoking: 'no'}
add_icon: [no_smoking]
+- tags: {atm: 'yes'}
+ add_icon: [atm]