Library as on the artboard (after Locus Map), renamed from Tracks & Points: find on top (text, kind chips with counts, shown on the map only, Folders | List), one folder level at a time with ← up and the path (the up button takes a dragged item a level up), folders first, an eye per row (● shown, ◐ some of a folder, ○ none; a folder's eye shows or hides everything in it), a track's points open from its ›; while searching or in List every match flat with its folder; totals and Hide all at the foot; uploads, new folders and drops on blank space go to the folder open. The elevation profile docked under the map: the map gives up its height; a route shows its own profile once the terrain is sampled (not while driving) and hides it when cleared
This commit is contained in:
1 parent
fc8564fe3b
commit
91fa9cec41
6 files changed
+545
-155
No files matched your search
+11
-1
@@ -111,7 +111,10 @@ export class RoutePanelControl {
|
||||
this._editingNote = this._panel.querySelector(".route-panel__editing");
|
||||
this._saveButton.addEventListener("click", () => this._save());
|
||||
this._profileButton = this._panel.querySelector(".route-panel__profile");
|
||||
this._profileButton.addEventListener("click", () => this._profilePanel.show(this._profileProperties()));
|
||||
this._profileButton.addEventListener("click", () => {
|
||||
this._profileShown = this._profileProperties();
|
||||
this._profilePanel.show(this._profileShown);
|
||||
});
|
||||
this._reachStatus = this._panel.querySelector(".route-panel__reach-status");
|
||||
this._reachClear = this._panel.querySelector('[data-action="reach-clear"]');
|
||||
this._panel.querySelector('[data-action="reach"]').addEventListener("click", () => this._showReach());
|
||||
@@ -507,6 +510,8 @@ export class RoutePanelControl {
|
||||
this._showCountries(route?.properties.countries);
|
||||
this._renderTotals(route);
|
||||
this._summary.textContent = message;
|
||||
if (this._profileShown && this._profilePanel.shown === this._profileShown) this._profilePanel.hide();
|
||||
this._profileShown = null;
|
||||
if (!route) return;
|
||||
|
||||
const { maneuvers } = route.properties;
|
||||
@@ -530,6 +535,11 @@ export class RoutePanelControl {
|
||||
route.elevation = profile;
|
||||
this._renderTotals(route);
|
||||
this._profileButton.hidden = false;
|
||||
// the route's profile docked under the map while planning (not driving)
|
||||
if (!document.documentElement.classList.contains("driving")) {
|
||||
this._profileShown = this._profileProperties();
|
||||
this._profilePanel.show(this._profileShown);
|
||||
}
|
||||
}
|
||||
|
||||
// What TrackProfilePanel (and a library track) reads.
|
||||
|
||||
Reference in new issue
Block a user