mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
feat: routes overview - sort by length
This commit is contained in:
parent
364ccc1691
commit
28bc6ccde6
3 changed files with 7 additions and 5 deletions
|
|
@ -5522,7 +5522,9 @@
|
||||||
<div data-tip="Click to sort by route group" class="sortable alphabetically" data-sortby="group">
|
<div data-tip="Click to sort by route group" class="sortable alphabetically" data-sortby="group">
|
||||||
Group
|
Group
|
||||||
</div>
|
</div>
|
||||||
<div data-tip="Click to sort by route length" class="sortable" data-sortby="length">Length </div>
|
<div data-tip="Click to sort by route length" class="sortable icon-sort-number-down" data-sortby="length">
|
||||||
|
Length
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="routesBody" class="table"></div>
|
<div id="routesBody" class="table"></div>
|
||||||
|
|
|
||||||
|
|
@ -522,9 +522,9 @@ window.Routes = (function () {
|
||||||
];
|
];
|
||||||
|
|
||||||
const suffixes = {
|
const suffixes = {
|
||||||
roads: {road: 3, route: 1, way: 1, highway: 1},
|
roads: {road: 7, route: 3, way: 2, highway: 1},
|
||||||
trails: {trail: 3, path: 1, track: 1, pass: 1},
|
trails: {trail: 4, path: 1, track: 1, pass: 1},
|
||||||
searoutes: {"sea route": 3, lane: 2, passage: 1, seaway: 1}
|
searoutes: {"sea route": 5, lane: 2, passage: 1, seaway: 1}
|
||||||
};
|
};
|
||||||
|
|
||||||
function generateName({group, cells}) {
|
function generateName({group, cells}) {
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ function overviewRoutes() {
|
||||||
routes
|
routes
|
||||||
.select("#route" + routeId)
|
.select("#route" + routeId)
|
||||||
.attr("stroke", "red")
|
.attr("stroke", "red")
|
||||||
.attr("stroke-width", 3)
|
.attr("stroke-width", 2)
|
||||||
.attr("stroke-dasharray", "none");
|
.attr("stroke-dasharray", "none");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue