default bearing to 0

This commit is contained in:
cjdenio committed 2026-07-02 12:47:17 -06:00
1 parent a07eeed787
commit e9ec54f059
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -273,6 +273,6 @@
</div> </div>
</div> </div>
<script type="module" src="/js/main.js?v=2"></script> <script type="module" src="/js/main.js?v=3"></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -142,7 +142,7 @@ function renderVehicleIcon(vehicle) {
}" style="--color: #${vehicle.route.color};"> }" style="--color: #${vehicle.route.color};">
<div style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;"> <div style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;">
<svg style="transform: rotate(${ <svg style="transform: rotate(${
vehicle.bearing vehicle.bearing ?? 0
}deg) translateY(-12px); width: 18px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"/></svg> }deg) translateY(-12px); width: 18px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"/></svg>
</div> </div>
${ ${