<p></p>
<p><b>@AntonKhorev</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6189#discussion_r2203502043">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">Did you make any changes that prevent existing <code class="notranslate"><use></code>s like the following from working?</p>
<div class="highlight highlight-text-xml-svg" dir="auto"><pre class="notranslate"> <<span class="pl-ent">symbol</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>routing-sprite-slight-left<span class="pl-pds">"</span></span>>
<<span class="pl-ent">use</span> <span class="pl-e">href</span>=<span class="pl-s"><span class="pl-pds">"</span>#routing-sprite-slight-right<span class="pl-pds">"</span></span> <span class="pl-e">transform</span>=<span class="pl-s"><span class="pl-pds">"</span>matrix(-1 0 0 1 20 0)<span class="pl-pds">"</span></span> />
</<span class="pl-ent">symbol</span>></pre></div>
<p dir="auto">Because if not, you don't need any transforms for mirroring.</p>
<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_r2203502043">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOLUWAMSEPMMF7YFNL3IKX6PAVCNFSM6AAAAACBMCFA6SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTAMJUGI4TAMBWGE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMQQRB4YYFNLQ6BNKD3IKX6PA5CNFSM6AAAAACBMCFA6SWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTVTVJVI2.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/3014290061</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_r2203502043",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6189#discussion_r2203502043",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>