diff --git a/map_machine/grid.py b/map_machine/grid.py index 57431f6..2450b7a 100644 --- a/map_machine/grid.py +++ b/map_machine/grid.py @@ -222,6 +222,7 @@ def draw_icons() -> None: icon_grid_path: Path = workspace.get_icon_grid_path() collection.draw_grid(icon_grid_path) logging.info(f"Icon grid is written to {icon_grid_path}.") + return icons_by_id_path: Path = workspace.get_icons_by_id_path() icons_by_name_path: Path = workspace.get_icons_by_name_path() diff --git a/map_machine/icons/icons.svg b/map_machine/icons/icons.svg index dc0b084..5e7ebb4 100644 --- a/map_machine/icons/icons.svg +++ b/map_machine/icons/icons.svg @@ -148,9 +148,9 @@ showgrid="true" inkscape:document-units="px" inkscape:current-layer="layer1" - inkscape:cy="431.19091" - inkscape:cx="186.80662" - inkscape:zoom="8" + inkscape:cy="426.19091" + inkscape:cx="189.78218" + inkscape:zoom="11.313708" inkscape:pageshadow="2" inkscape:pageopacity="0.0" borderopacity="1.0" @@ -593,7 +593,7 @@ @@ -610,7 +610,7 @@ style="opacity:0.2;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> @@ -7064,7 +7064,7 @@ ry="0.5" rx="0.5" y="163" - x="386" + x="370" height="9" width="12" id="rect5838" @@ -7089,18 +7089,18 @@ sodipodi:nodetypes="ccccccc" inkscape:connector-curvature="0" id="path5844" - d="m 394,163.5 -2.5,4 2.5,-0.5 0,2.5 2.5,-4 -2.5,0.5 z" + d="m 378,163.5 -2.5,4 2.5,-0.5 0,2.5 2.5,-4 -2.5,0.5 z" style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> @@ -9773,7 +9773,7 @@ id="rect9964" width="1" height="10" - x="359" + x="343" y="163" rx="0.5" ry="0.5" /> @@ -9782,13 +9782,13 @@ id="rect9966" width="13" height="1" - x="353" + x="337" y="167" rx="0.5" ry="0.5" /> @@ -11698,7 +11698,7 @@ inkscape:connector-curvature="0" /> @@ -11722,13 +11722,13 @@ inkscape:transform-center-x="2.0000032" inkscape:transform-center-y="3.4641006" id="use6934" - transform="matrix(-0.5,-0.8660254,0.8660254,-0.5,371.05677,547.22973)" + transform="matrix(-0.5,-0.8660254,0.8660254,-0.5,347.05677,533.37333)" width="100%" height="100%" style="fill:none;stroke:#000000;stroke-opacity:1" /> @@ -12707,13 +12707,13 @@ @@ -12736,7 +12736,7 @@ id="rect6687" width="3" height="1" - x="371" + x="355" y="167" rx="0.5" ry="0.5" /> @@ -12745,7 +12745,7 @@ id="rect6689" width="3" height="1" - x="371" + x="355" y="169" rx="0.5" ry="0.5" /> @@ -12754,7 +12754,7 @@ id="rect6691" width="3" height="1" - x="371" + x="355" y="171" rx="0.5" ry="0.5" /> @@ -12763,7 +12763,7 @@ id="rect6697" width="4" height="1" - x="371" + x="355" y="164" rx="0.5" ry="0.5" /> @@ -12772,7 +12772,7 @@ id="rect6699" width="4" height="1" - x="377" + x="361" y="164" rx="0.5" ry="0.5" /> @@ -12781,7 +12781,7 @@ id="rect6701" width="2" height="1" - x="378" + x="362" y="162" rx="0.5" ry="0.5" /> @@ -12790,13 +12790,13 @@ id="rect6703" width="2" height="1" - x="372" + x="356" y="162" rx="0.5" ry="0.5" /> @@ -17496,106 +17496,13 @@ id="rect24633" width="3" height="1.5" - x="358" + x="342" y="172" /> - - - - - - - - - - - - car - @@ -17937,7 +17844,7 @@ id="rect25026" width="2" height="2" - x="307" + x="291" y="169" rx="1" /> @@ -17960,7 +17867,7 @@ id="rect25056" width="2" height="1" - x="333" + x="317" y="169" rx="0" ry="0" /> @@ -17968,7 +17875,7 @@ ry="2" rx="2" y="170" - x="323" + x="307" height="4" width="4" id="rect25058" @@ -17976,7 +17883,7 @@ @@ -18553,7 +18460,7 @@ ry="0.5" rx="0.5" y="165" - x="322" + x="306" height="3" width="4" id="rect13087" @@ -18563,7 +18470,7 @@ id="rect13089" width="3" height="6" - x="328" + x="312" y="165" rx="0.5" ry="0.5" /> @@ -20279,13 +20186,13 @@ sodipodi:nodetypes="ccccccccc" inkscape:connector-curvature="0" id="path7704" - d="m 295,170 -2.5,2 -1.5,0 0,1 10,0 0,-1 -1,0 -2,-2 z" + d="m 279,170 -2.5,2 -1.5,0 0,1 10,0 0,-1 -1,0 -2,-2 z" style="opacity:0.2;fill:none;stroke:#000000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> @@ -20305,7 +20212,7 @@ id="rect7710" width="2" height="2" - x="292" + x="276" y="173" rx="1" /> @@ -22113,13 +22020,13 @@ id="rect10040" width="3" height="4" - x="411" + x="395" y="161" rx="0.5" ry="0.5" /> @@ -22128,7 +22035,7 @@ id="rect10050" width="1" height="2" - x="412" + x="396" y="162" rx="0.5" ry="0.5" /> @@ -22136,7 +22043,7 @@ ry="1" rx="1" y="166" - x="411" + x="395" height="4" width="3" id="rect10052" @@ -22145,20 +22052,20 @@ sodipodi:nodetypes="ccccccccccc" inkscape:connector-curvature="0" id="path10054" - d="m 411.5,167 -7,0 0,1 1,1 1,-1 1,1 1,-1 1,1 2,0 0,0 z" + d="m 395.5,167 -7,0 0,1 1,1 1,-1 1,1 1,-1 1,1 2,0 0,0 z" style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> @@ -22167,13 +22074,13 @@ id="rect10062" width="1" height="2" - x="412" + x="396" y="172.5" rx="0.5" ry="0.5" /> @@ -22181,22 +22088,23 @@ sodipodi:nodetypes="ccccccccc" inkscape:connector-curvature="0" id="path10074" - d="m 425,167.5 0,1 1,1 1,0 0.5,-0.5 0,-2 -0.5,-0.5 -1,0 z" + d="m 409,167.5 0,1 1,1 1,0 0.5,-0.5 0,-2 -0.5,-0.5 -1,0 z" style="opacity:0.2;fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + inkscape:label="#path10076" + inkscape:connector-curvature="0"> key @@ -23241,5 +23149,50 @@ toll booth + + + + + + + + diff --git a/map_machine/scheme/default.yml b/map_machine/scheme/default.yml index f56648a..925ad14 100644 --- a/map_machine/scheme/default.yml +++ b/map_machine/scheme/default.yml @@ -332,7 +332,7 @@ node_icons: location_restrictions: {include: [jp]} shapes: [japan_post] - tags: {shop: car_repair} - shapes: [car_repair] + shapes: [{shape: car, offset: [0, 3]}, {shape: wrench, offset: [0, -4]}] - tags: {amenity: car_rental} shapes: [{shape: car, offset: [0, 3]}, {shape: key, offset: [1, -3]}] - tags: {amenity: car_wash} @@ -636,7 +636,7 @@ node_icons: - tags: {amenity: parking} shapes: [p] - tags: {amenity: parking, parking: multi-storey} - shapes: [cars] + shapes: [{shape: car, offset: [0, 4]}, {shape: car, offset: [0, -3]}] - tags: {highway: turning_circle} shapes: [circle_empty] - tags: {highway: crossing}