Drive as the Design canvas' Grid: the page as 16 × 10 cells from a screen profile (public/drive/road.json, {area, widget, …} per cell, to be edited in the app later), the map 13 × 8 with nothing over it; the manoeuvre, speed, limit, altitude, time, sun, status (online, rec), next stop with km / ETA to it and to the end, the route's elevation of the next 10 km, a compass; keys Trip, Points, Layers, Search, Menu, − + 3D Follow, Terrain, day/dusk/night. A menu opens in the right 7 × 8 as cells of its own and the map narrows to 9 × 8 (drive_menus.js): Trip and Search as GridTrip / GridSearch (a stop a row, ✓ ↑ ↓ ✕ a cell each; results with their pins on the map); Points as GridPoints (the library nearest the car — /api/search with no words and a center lists every saved feature nearest first — along the route ahead, shown, or one folder at a time; an eye per row, + a point as a stop); Layers as GridLayers (the On the map panel's own switches and Online | Offline, presets Road / Off-road / Overnight, + Keep); Terrain as GridTerrain (roll / pitch dials with the max held, climb and side slope ahead from the DEM, the next 2 km, Level here = can.json's levelling action in two taps), on by itself on an unpaved surface (/api/road now gives Valhalla's surface) or past 10° for 10 s, back after 2 km of paved road, automatic / by hand in the Menu. The dashboard polls for the grid without its overlay; the old drive bar and floating buttons gone
This commit is contained in:
1 parent
285af64a65
commit
f73badd107
14 files changed
+1253
-277
No files matched your search
@@ -705,6 +705,26 @@ export class GpxPanelControl {
|
||||
this._renderView();
|
||||
}
|
||||
|
||||
// For the driving grid's Points (driving.js): the tree as indexed by
|
||||
// _renderTree, whether a node is shown, and showing / hiding nodes.
|
||||
libraryTree() {
|
||||
return { folders: this._folders || new Map(), files: this._files || new Map(), filesUnder: (path) => this._filesUnder(path) };
|
||||
}
|
||||
|
||||
isShown(path) {
|
||||
return this._visible.has(path);
|
||||
}
|
||||
|
||||
async setShown(paths, visible) {
|
||||
await Promise.all(paths.map((path) => this._toggleFileOnly(path, visible)));
|
||||
this._saveVisible();
|
||||
this._renderView();
|
||||
}
|
||||
|
||||
zoomTo(path) {
|
||||
return this._zoomTo(path);
|
||||
}
|
||||
|
||||
// Search result picked: show its file, then open the matching point's
|
||||
// popup as if it had been clicked on the map. Matched by exact
|
||||
// coordinates (the search index reads the same GeoJSON); a track/line
|
||||
|
||||
Reference in new issue
Block a user