From 28bc6ccde697af0842cdfa5c255a142502c5df9f Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 1 Aug 2024 12:16:44 +0200 Subject: [PATCH] feat: routes overview - sort by length --- index.html | 4 +++- modules/routes-generator.js | 6 +++--- modules/ui/routes-overview.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 88b0b629..e09a9963 100644 --- a/index.html +++ b/index.html @@ -5522,7 +5522,9 @@
Group 
-
Length 
+
+ Length  +
diff --git a/modules/routes-generator.js b/modules/routes-generator.js index 9b0b3f31..ca086222 100644 --- a/modules/routes-generator.js +++ b/modules/routes-generator.js @@ -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}) { diff --git a/modules/ui/routes-overview.js b/modules/ui/routes-overview.js index 6859d594..cb626025 100644 --- a/modules/ui/routes-overview.js +++ b/modules/ui/routes-overview.js @@ -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"); }