Expand description
Assorted tools and UI states thatβre useful for applications built to display maps.
ModulesΒ§
- camera π
- city_
picker π - colors π
- command π
- compare_
counts - draw_
overlapping_ πpaths - heatmap π
- icons π
- importer π
- labels π
- minimap π
- navigate π
- polygon π
- title_
screen π - trip_
files π - ui π
- Generic UI tools. Some of this should perhaps be lifted to widgetry.
- updater π
- waypoints π
StructsΒ§
- Camera
State - Represents the state of a widgetry Canvas.
- City
Picker - Lets the player switch maps.
- Color
Discrete - Color
Network - Default
Map - Track the last map used, to resume next session.
- Draw
Road Labels - Labels roads when unzoomed. Label size and frequency depends on the zoom level.
- Draw
Simple Road Labels - Draws labels in map-space that roughly fit on the roads. Donβt change behavior during zooming; labels are only meant to be legible when zoomed in.
- Edit
Polygon - File
Picker - File
Saver - Grid
- A 2D grid containing some arbitrary data.
- Heatmap
Options - Input
Waypoints - Click to add waypoints, drag them, see the list on a panel and delete them. The caller owns the Panel and the World, since thereβs probably more stuff there too.
- Minimap
- Navigator
- RunCommand
- Executes a command and displays STDOUT and STDERR in a loading screen window. Only works on native, of course.
- Title
Screen - A title screen shared among all of the A/B Street apps.
- Trip
Management - Save sequences of waypoints as named trips. Basic file management β save, load, browse. This is useful to define βtest cases,β then edit the bike network and βrun the testsβ to compare results.
- WaypointID
EnumsΒ§
ConstantsΒ§
- NEXT_
RELEASE π
TraitsΒ§
- Minimap
Controls - Customize the appearance and behavior of a minimap.
- Trip
Management State
FunctionsΒ§
- app_
header - A standard way to group a home button back to the title screen, the title of the current app,
and a button to change maps. Callers must handle the
change map
andhome
click events. - change_
map_ btn - A button to change maps, with default keybindings
- checkbox_
per_ mode - cmp_
count - Less is better
- cmp_
dist - Shorter is better
- cmp_
duration - Shorter is better
- color_
for_ mode - draw_
isochrone - Thresholds are Durations, in units of seconds
- draw_
overlapping_ paths - find_
exe - Returns the path to an executable. Native-only.
- goal_
marker - Draw a goal marker pointing at something.
- grey_
out_ map - Make it clear the map canβt be interacted with right now.
- home_
btn - A button to return to the title screen
- intersections_
from_ roads - loading_
tips - make_
heatmap - nice_
country_ name - nice_
map_ name - percentage_
bar - prompt_
to_ download_ missing_ data - start_
marker - Draw a start marker pointing at something.
- update_
url_ map_ name - Modify the current URL to set the first free parameter to the current map name.
- version
- Returns the version of A/B Street to link to. When building for a release, this points to that new release. Otherwise it points to the current dev version.