feat: routes overview - sort by length

This commit is contained in:
Azgaar 2024-08-01 12:16:44 +02:00
parent 364ccc1691
commit 28bc6ccde6
3 changed files with 7 additions and 5 deletions

View file

@ -5522,7 +5522,9 @@
<div data-tip="Click to sort by route group" class="sortable alphabetically" data-sortby="group">
Group&nbsp;
</div>
<div data-tip="Click to sort by route length" class="sortable" data-sortby="length">Length&nbsp;</div>
<div data-tip="Click to sort by route length" class="sortable icon-sort-number-down" data-sortby="length">
Length&nbsp;
</div>
</div>
<div id="routesBody" class="table"></div>

View file

@ -522,9 +522,9 @@ window.Routes = (function () {
];
const suffixes = {
roads: {road: 3, route: 1, way: 1, highway: 1},
trails: {trail: 3, path: 1, track: 1, pass: 1},
searoutes: {"sea route": 3, lane: 2, passage: 1, seaway: 1}
roads: {road: 7, route: 3, way: 2, highway: 1},
trails: {trail: 4, path: 1, track: 1, pass: 1},
searoutes: {"sea route": 5, lane: 2, passage: 1, seaway: 1}
};
function generateName({group, cells}) {

View file

@ -79,7 +79,7 @@ function overviewRoutes() {
routes
.select("#route" + routeId)
.attr("stroke", "red")
.attr("stroke-width", 3)
.attr("stroke-width", 2)
.attr("stroke-dasharray", "none");
}