feat: routes rendering

This commit is contained in:
Azgaar 2024-03-24 22:43:37 +01:00
parent 6776e5b867
commit 71e53bd34f
4 changed files with 138 additions and 9 deletions

View file

@ -134,15 +134,15 @@ window.Routes = (function () {
const routes = [];
for (const {feature, cells} of mainRoads) {
routes.push({i: routes.length, type: "road", feature, cells});
routes.push({i: routes.length, group: "roads", feature, cells});
}
for (const {feature, cells} of trails) {
routes.push({i: routes.length, type: "trail", feature, cells});
routes.push({i: routes.length, group: "trails", feature, cells});
}
for (const {feature, cells} of seaRoutes) {
routes.push({i: routes.length, type: "sea", feature, cells});
routes.push({i: routes.length, group: "searoutes", feature, cells});
}
return routes;