Terrain closes by itself again: the road's surface only off the route (back on it the last road's stayed, so the view never closed); while it's open the top row's Limit shows the surface. Navigated, the planned route behind the car thin and dashed under the trip log's track (the line and its casing clear there). The scale back over the map, bottom left. CAN recordings older than CAN_REC_KEEP_HOURS (24 by default, 0 keeps all) deleted when listed and every segment while recording. TODO tidied
This commit is contained in:
1 parent
21ad6c0c21
commit
f981b80599
9 files changed
+80
-34
No files matched your search
+2
-2
@@ -306,7 +306,7 @@ map.addControl(new HomeButton({ bounds: SLOVAKIA_BOUNDS }), "top-right");
|
||||
}
|
||||
|
||||
// The status bar: the map's center (click to copy), the point under the
|
||||
// mouse, the zoom level, the scale.
|
||||
// mouse, the zoom level.
|
||||
const cursorLabel = document.querySelector(".statusbar__cursor");
|
||||
let terrainOffline = false; // set once /api/terrain-tiles answers (below)
|
||||
let elevationTimer = null;
|
||||
@@ -325,7 +325,7 @@ const zoomLabel = document.querySelector(".statusbar__zoom");
|
||||
const updateZoom = () => (zoomLabel.textContent = `Zoom ${map.getZoom().toFixed(1)}`);
|
||||
updateZoom();
|
||||
map.on("zoom", updateZoom);
|
||||
document.querySelector(".statusbar__scale").appendChild(new ScaleControl({ unit: "metric" }).onAdd(map));
|
||||
map.addControl(new ScaleControl({ unit: "metric" }), "bottom-left"); // over the map, as in the canvas' Desktop
|
||||
|
||||
// A small inset map showing where the current view sits in context — NPS's
|
||||
// own overview plugin (docs/nps-resources.adoc's "overview" entry, still on
|
||||
|
||||
Reference in new issue
Block a user