Offline routing phase 2: route panel, /api/route via Valhalla, vehicle profile, save a route to the library

This commit is contained in:
randy committed 2026-11-13 22:34:47 +01:00
1 parent d93c77727f
commit 3146478c23
11 files changed
+577 -12

No files matched your search

+96
View File
@@ -2256,3 +2256,99 @@ html, body {
white-space: normal;
max-width: 200px;
}
/* Route panel (public/js/route.js) */
.route-panel__body {
padding: 10px 12px;
overflow-y: auto;
}
.route-panel__hint,
.route-panel__summary {
margin: 0 0 8px;
color: #666;
}
.route-panel__summary {
color: #222;
font-weight: 600;
}
.route-panel__points {
margin: 0 0 8px;
padding: 0;
list-style: none;
}
.route-panel__points li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 3px 0;
}
.route-panel__remove {
border: none;
background: none;
color: #999;
font-size: 14px;
cursor: pointer;
}
.route-panel__remove:hover {
color: #e63946;
}
.route-panel__buttons {
display: flex;
gap: 6px;
margin-bottom: 8px;
}
.route-panel__buttons button {
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
padding: 4px 8px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.route-panel__buttons button[hidden] {
display: none;
}
.route-panel__directions {
margin-bottom: 8px;
}
.route-panel__directions ol {
margin: 6px 0 0;
padding-left: 20px;
}
.route-panel__vehicle {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
border: 1px solid #eee;
border-radius: 4px;
}
.route-panel__vehicle input {
width: 4.5em;
}
.route-marker {
width: 22px;
height: 22px;
border-radius: 50%;
background: #1d6fdc;
border: 2px solid #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
color: #fff;
font: 600 11px/22px sans-serif;
text-align: center;
cursor: grab;
}