<p></p>
<p><b>@hlfan</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6189#discussion_r2203555739">app/views/directions/show.html.erb</a>:</p>
<pre style='color:#555'>> - <path d="M9 14 v-8" opacity=".5" />
- <path d="M9 17 v-3 q0 -2 2 -4 l5 -5 m0 0 h-3 l3 3 z" />
- </symbol>
- <symbol id="routing-sprite-exit-left">
- <use href="#routing-sprite-exit-right" transform="matrix(-1 0 0 1 20 0)" />
- </symbol>
-
- <symbol id="routing-sprite-ferry" fill="none" stroke="currentColor" stroke-width="1">
- <path d="M10.5 8 l-6 2 l2.5 2 v1.5 a2.828 2.828 0 0 1 1.5 1 a2.828 2.828 0 0 1 4 0 a2.828 2.828 0 0 1 1.5 -1 v-1.5 l2.5 -2 z" fill="currentColor" />
- <path d="M6.5 9.5 v-5 h8 v5 m-5.5 -6 h3" />
- <path d="M5.5 16.5 a1.414 2.828 0 0 1 2 0 a1.414 2.828 0 0 0 2 0 a1.414 2.828 0 0 1 2 0 a1.414 2.828 0 0 0 2 0 a1.414 2.828 0 0 1 2 0" />
- </symbol>
+<svg class="d-none">
+ <% Rails.root.glob("app/assets/images/routing/*.svg").each do |path| %>
+ <%= inline_svg_tag "routing/#{File.basename(path)}", :id => "routing-sprite-#{File.basename(path, '.svg')}", :to_symbol => true %>
+ <% end %>
</svg>
</pre>
<p dir="auto">No, that's exactly my plan.<br>
I've decided to move the right and sharp right turn icons 1px toward the center so that these start at the same point as the slight right turn icon.<br>
That means I can use the <code class="notranslate">transform="matrix(-1 0 0 1 20 0)"</code> for every icon.</p>
<a href="https://github.com/user-attachments/assets/ce5fdd5e-deda-47f9-bcad-ec1c7d64c972">image.png (view on web)</a>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6189#discussion_r2203555739">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOVNMAYBUOFIEPHD733ILMXXAVCNFSM6AAAAACBMCFA6SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTAMJUGM2TANZYGU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLI73ACWOBYFVLMSGT3ILMXXA5CNFSM6AAAAACBMCFA6SWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTVTVNL4C.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6189/review/3014350785</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6189#discussion_r2203555739",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6189#discussion_r2203555739",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>