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
@@ -55,6 +55,13 @@ class SearchTest < Minitest::Test
|
||||
assert_empty search(" ")
|
||||
end
|
||||
|
||||
def test_blank_query_with_a_center_lists_the_library_nearest_first
|
||||
results = search("", center: [48.72, 21.26])
|
||||
assert_equal "Kemp Košice", results.first[:name]
|
||||
assert(results.all? { |r| r[:source] == "layers" })
|
||||
assert_empty search("", center: [48.72, 21.26], sources: ["hiking_trails"])
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def search(text, **opts)
|
||||
|
||||
Reference in new issue
Block a user